IO::Async::Loop::AnyEvent - use IO::Async with AnyEvent
IO::Async::Loop::AnyEvent
IO::Async
AnyEvent
use IO::Async::Loop::AnyEvent; my $loop = IO::Async::Loop::AnyEvent->new(); $loop->add( ... ); $loop->add( IO::Async::Signal->new( name => 'HUP', on_receipt => sub { ... }, ) ); $loop->loop_forever();
This subclass of IO::Async::Loop uses AnyEvent to perform its work.
This function returns a new instance of a IO::Async::Loop::AnyEvent object.
watch_idle and unwatch_idle are unimplemented, as a satisfactory implementation does not seem easy to come by. AnyEvent doesn't portably guarantee a later-like event.
watch_idle
unwatch_idle
later
The implementation of the loop_once method requires the use of an undocumented method AnyEvent->one_event. This happens to work at the time of writing, but as it is undocumented it may be subject to change.
loop_once
AnyEvent->one_event
Paul Evans <leonerd@leonerd.org.uk>
To install IO::Async::Loop::AnyEvent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::Async::Loop::AnyEvent
CPAN shell
perl -MCPAN -e shell install IO::Async::Loop::AnyEvent
For more information on module installation, please visit the detailed CPAN module installation guide.