… | |
… | |
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 | |
158 | Return the current time (not cached, always consults a hardware clock). |
158 | Return the current time (not cached, always consults a hardware clock). |
159 | |
159 | |
|
|
160 | =item AE::postpone { BLOCK } |
|
|
161 | |
|
|
162 | Exactly the same as C<AnyEvent:::postpone>. |
|
|
163 | |
160 | =back |
164 | =back |
161 | |
165 | |
162 | =head1 AUTHOR |
166 | =head1 AUTHOR |
163 | |
167 | |
164 | Marc Lehmann <schmorp@schmorp.de> |
168 | Marc Lehmann <schmorp@schmorp.de> |