ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AE.pm
(Generate patch)

Comparing AnyEvent/lib/AE.pm (file contents):
Revision 1.12 by root, Wed Aug 17 22:03:02 2011 UTC vs.
Revision 1.16 by root, Mon Apr 9 02:25:48 2012 UTC

26 }; 26 };
27 27
28 # called when event loop idle (if applicable) 28 # called when event loop idle (if applicable)
29 my $w = AE::idle sub { ... }; 29 my $w = AE::idle sub { ... };
30 30
31 my $w = AE::cv; # stores whether a condition was flagged 31 my $cv = AE::cv; # stores whether a condition was flagged
32 $w->send; # wake up current and all future recv's 32 $cv->send; # wake up current and all future recv's
33 $w->recv; # enters "main loop" till $condvar gets ->send 33 $cv->recv; # enters "main loop" till $condvar gets ->send
34 # use a condvar in callback mode: 34 # use a condvar in callback mode:
35 $w->cb (sub { $_[0]->recv }); 35 $cv->cb (sub { $_[0]->recv });
36 36
37 37
38=head1 DESCRIPTION 38=head1 DESCRIPTION
39 39
40This module documents the new simpler AnyEvent API. 40This module documents the new simpler AnyEvent API.
68At the moment, these functions will become slower then their method-call 68At the moment, these functions will become slower then their method-call
69counterparts when using L<AnyEvent::Strict> or L<AnyEvent::Debug>::wrap. 69counterparts when using L<AnyEvent::Strict> or L<AnyEvent::Debug>::wrap.
70 70
71=head2 FUNCTIONS 71=head2 FUNCTIONS
72 72
73This section briefly describes the alternative watcher 73This section briefly describes the alternative watcher constructors and
74constructors. Semantics are not described here; please 74other functions available inside the C<AE> namespace. Semantics are not
75described here; please refer to the description of the function or method
75refer to the L<AnyEvent> manpage for the details. 76with the same name in the L<AnyEvent> manpage for the details.
76 77
77=over 4 78=over 4
78 79
79=cut 80=cut
80 81
167=back 168=back
168 169
169=head1 AUTHOR 170=head1 AUTHOR
170 171
171 Marc Lehmann <schmorp@schmorp.de> 172 Marc Lehmann <schmorp@schmorp.de>
172 http://home.schmorp.de/ 173 http://anyevent.schmorp.de
173 174
174=cut 175=cut
175 176
1761 1771
177 178

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines