AnyEvent::Impl::CoroEvent - AnyEvent adaptor for Coro::Event, Event
use AnyEvent; use Coro::Event; # this module gets loaded automatically as required
This module provides transparent support for AnyEvent. You don't have to do anything to make Coro::Event work with AnyEvent except by loading Coro::Event before creating the first AnyEvent watcher.
Unlike most other event models, Coro::Event models allow recursion in condvars (see AnyEvent, $condvar->wait), as long as this is done from different coroutines AND Coro::unblock is used to register callbacks. See AnyEvent::Coro::Event for even less restrictions.
$condvar->wait
Coro::unblock
See AnyEvent::Impl::Coro and Coro::Event for more details about Coro integration.
L<AnyEvent>, L<AnyEvent::Impl::Coro>, L<Coro::Event>.
Marc Lehmann <schmorp@schmorp.de> http://home.schmorp.de/
To install AnyEvent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent
CPAN shell
perl -MCPAN -e shell install AnyEvent
For more information on module installation, please visit the detailed CPAN module installation guide.