Mojo::IOWatcher::EV(3)User Contributed Perl DocumentatioMojo::IOWatcher::EV(3)NAMEMojo::IOWatcher::EV - EV Non-Blocking I/O Watcher
SYNOPSIS
use Mojo::IOWatcher::EV;
DESCRIPTIONMojo::IOWatcher::EV is a minimalistic non-blocking I/O watcher with
"libev" support. Note that this module is EXPERIMENTAL and might
change without warning!
METHODSMojo::IOWatcher::EV inherits all methods from Mojo::IOWatcher and
implements the following new ones.
"new"
my $watcher = Mojo::IOWatcher::EV->new;
Construct a new Mojo::IOWatcher::EV object.
"not_writing"
$watcher = $watcher->not_writing($handle);
Only watch handle for readable events.
"one_tick"
$watcher->one_tick('0.25');
Run for exactly one tick and watch for I/O and timer events.
"recurring"
my $id = $watcher->recurring(3 => sub {...});
Create a new recurring timer, invoking the callback repeatedly after a
given amount of seconds.
"remove"
$watcher = $watcher->remove($handle);
Remove handle.
"timer"
my $id = $watcher->timer(3 => sub {...});
Create a new timer, invoking the callback after a given amount of
seconds.
"writing"
$watcher = $watcher->writing($handle);
Watch handle for readable and writable events.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.1 2011-09-01 Mojo::IOWatcher::EV(3)