1 |
root |
1.3 |
=head1 NAME |
2 |
|
|
|
3 |
|
|
AnyEvent::Impl::CoroEV - AnyEvent adaptor for Coro::EV, EV |
4 |
|
|
|
5 |
|
|
=head1 SYNOPSIS |
6 |
|
|
|
7 |
|
|
use AnyEvent; |
8 |
|
|
use EV; |
9 |
|
|
|
10 |
|
|
# this module gets loaded automatically as required |
11 |
|
|
|
12 |
|
|
=head1 DESCRIPTION |
13 |
|
|
|
14 |
|
|
This module provides transparent support for AnyEvent. You don't have to |
15 |
|
|
do anything to make Coro::EV work with AnyEvent except by loading Coro::EV |
16 |
|
|
before creating the first AnyEvent watcher. |
17 |
|
|
|
18 |
|
|
Unlike all other event models, Coro::EV models allow recursion in condvars |
19 |
|
|
(see L<AnyEvent>, C<< $condvar->wait >>), I<as long as this is done from |
20 |
|
|
different coroutines>. |
21 |
|
|
|
22 |
|
|
See L<AnyEvent::Impl::Coro> and L<Coro::EV> for more details about L<Coro> |
23 |
|
|
integration. |
24 |
|
|
|
25 |
|
|
=cut |
26 |
|
|
|
27 |
root |
1.1 |
package AnyEvent::Impl::CoroEV; |
28 |
|
|
|
29 |
root |
1.2 |
use base qw(AnyEvent::Impl::Coro AnyEvent::Impl::EV); |
30 |
root |
1.1 |
|
31 |
|
|
use strict; |
32 |
|
|
no warnings; |
33 |
|
|
|
34 |
|
|
use Coro::EV (); |
35 |
|
|
|
36 |
root |
1.3 |
1; |
37 |
|
|
|
38 |
|
|
=head1 SEE ALSO |
39 |
|
|
|
40 |
root |
1.4 |
L<AnyEvent>, L<AnyEvent::Impl::Coro>, L<Coro::EV>. |
41 |
root |
1.3 |
|
42 |
|
|
=head1 AUTHOR |
43 |
|
|
|
44 |
|
|
Marc Lehmann <schmorp@schmorp.de> |
45 |
|
|
http://home.schmorp.de/ |
46 |
|
|
|
47 |
|
|
=cut |
48 |
|
|
|
49 |
root |
1.1 |
|