NAME
IO::Async::Loop::AnyEvent - use IO::Async with AnyEvent
SYNOPSIS
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();
DESCRIPTION
This subclass of IO::Async::Loop uses AnyEvent to perform its work.
CONSTRUCTOR
$loop = IO::Async::Loop::AnyEvent->new
This function returns a new instance of a IO::Async::Loop::AnyEvent object.
BUGS
watch_idleandunwatch_idleare unimplemented, as a satisfactory implementation does not seem easy to come by.AnyEventdoesn't portably guarantee alater-like event.The implementation of the
loop_oncemethod requires the use of an undocumented methodAnyEvent->one_event. This happens to work at the time of writing, but as it is undocumented it may be subject to change.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>