The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojo::IOWatcher::KQueue - KQueue Async IO Watcher

SYNOPSIS

  use Mojo::IOWatcher::KQueue;

DESCRIPTION

Mojo::IOWatcher is a minimalistic async io watcher with kqueue support. Note that this module is EXPERIMENTAL and might change without warning!

METHODS

Mojo::IOWatcher::KQueue inherits all methods from Mojo::IOWatcher and implements the following new ones.

not_writing

  $watcher = $watcher->not_writing($handle);

Only watch handle for readable events.

remove

  $watcher = $watcher->remove($handle);

Remove handle.

watch

  $watcher->watch('0.25');

Run for exactly one tick and watch only for io events.

writing

  $watcher = $watcher->writing($handle);

Watch handle for readable and writable events.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicio.us.