++ed by:
ZAKAME BVINNERD LEEJO ZOFFIX DGINEV

122 PAUSE users
156 non-PAUSE users.

Glen Hinkle
and 1 contributors

NAME

Mojo::IOWatcher::EV - EV non-blocking I/O watcher

SYNOPSIS

  use Mojo::IOWatcher::EV;

  my $watcher = Mojo::IOWatcher::EV->new;

DESCRIPTION

Mojo::IOWatcher::EV is a minimalistic non-blocking I/O watcher with libev support. Note that this module is EXPERIMENTAL and might change without warning!

EVENTS

Mojo::IOWatcher::EV inherits all events from Mojo::IOWatcher.

METHODS

Mojo::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.

is_running

  my $success = $watcher->is_running;

Check if watcher is running.

recurring

  my $id = $watcher->recurring(3 => sub {...});

Create a new recurring timer, invoking the callback repeatedly after a given amount of time in seconds.

start

  $watcher->start;

Start watching for I/O and timer events, this will block until stop is called or no events are being watched anymore.

stop

  $watcher->stop;

Stop watching for I/O and timer events.

timer

  my $id = $watcher->timer(3 => sub {...});

Create a new timer, invoking the callback after a given amount of time in seconds.

watch

  $watcher = $watcher->watch($handle, $read, $write);

Change I/O events to watch handle for.

SEE ALSO

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