NAME

EntityModel::EventLoop::IO::Async - handler for IO::Async::Loop object.

VERSION

version 0.001

DESCRIPTION

Support for an IO::Async event loop.

METHODS

loop

Direct accessor for the IO::Async::Loop object, can be used to provide a specific loop:

$el->loop(IO::Async::Loop::Epoll->new);

event_loop

Returns the event loop, instantiating a new one if necessary. Should be used in preference to "loop" for making sure that a valid event loop is available, since this will raise an exception if no event loop could be instantiated.

defer

Defers execution of the given codeblock using "$loop-" in IO::Async::Looplater( $code )>.

sleep

Runs the given code block after an interval.

Instance method which expects an interval (in seconds) and a single coderef.

SEE ALSO

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2011-2012. Licensed under the same terms as Perl itself.