The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AnyEvent::Impl::CoroEvent - AnyEvent adaptor for Coro::Event, Event

SYNOPSIS

  use AnyEvent;
  use Coro::Event;

  # this module gets loaded automatically as required

DESCRIPTION

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.

See AnyEvent::Impl::Coro and Coro::Event for more details about Coro integration.

SEE ALSO

  L<AnyEvent>, L<AnyEvent::Impl::Coro>, L<Coro::Event>.

AUTHOR

 Marc Lehmann <schmorp@schmorp.de>
 http://home.schmorp.de/