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.8 by root, Tue Aug 31 00:59:55 2010 UTC vs.
Revision 1.11 by root, Tue Aug 16 14:47:26 2011 UTC

24 my ($pid, $status) = @_; 24 my ($pid, $status) = @_;
25 ... 25 ...
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 { ... }; 29 my $w = AE::idle sub { ... };
30 30
31 my $w = AE::cv; # stores whether a condition was flagged 31 my $w = AE::cv; # stores whether a condition was flagged
32 $w->send; # wake up current and all future recv's 32 $w->send; # wake up current and all future recv's
33 $w->recv; # enters "main loop" till $condvar gets ->send 33 $w->recv; # enters "main loop" till $condvar gets ->send
34 # use a condvar in callback mode: 34 # use a condvar in callback mode:
155 155
156=item AE::time 156=item AE::time
157 157
158Return the current time (not cached, always consults a hardware clock). 158Return the current time (not cached, always consults a hardware clock).
159 159
160=item AE::postpone { BLOCK }
161
162Exactly the same as C<AnyEvent:::postpone>.
163
164=item AE::log $level, $msg[, @args]
165
166Exactly the same as C<AnyEvent::log> (or C<AnyEvent::Log::log>).
167
160=back 168=back
161 169
162=head1 AUTHOR 170=head1 AUTHOR
163 171
164 Marc Lehmann <schmorp@schmorp.de> 172 Marc Lehmann <schmorp@schmorp.de>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines