Mojo::IOWatcher::KQueue - KQueue Async IO Watcher
use Mojo::IOWatcher::KQueue;
Mojo::IOWatcher is a minimalistic async io watcher with kqueue support. Note that this module is EXPERIMENTAL and might change without warning!
kqueue
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.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.