ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/Timer.pm
(Generate patch)

Comparing Coro/Coro/Timer.pm (file contents):
Revision 1.70 by root, Sat Aug 22 22:36:23 2009 UTC vs.
Revision 1.71 by root, Thu Oct 1 23:16:27 2009 UTC

18 18
19=cut 19=cut
20 20
21package Coro::Timer; 21package Coro::Timer;
22 22
23no warnings; 23use common::sense;
24 24
25use Carp (); 25use Carp ();
26use Exporter; 26use Exporter;
27 27
28use AnyEvent (); 28use AnyEvent ();
29 29
30use Coro (); 30use Coro ();
31use Coro::AnyEvent (); 31use Coro::AnyEvent ();
32 32
33$VERSION = 5.17; 33our $VERSION = 5.17;
34@EXPORT_OK = qw(timeout sleep); 34our @EXPORT_OK = qw(timeout sleep);
35 35
36=item $flag = timeout $seconds; 36=item $flag = timeout $seconds;
37 37
38This function will wake up the current coroutine after $seconds 38This function will wake up the current coroutine after $seconds
39seconds and sets $flag to true (it is false initially). If $flag goes 39seconds and sets $flag to true (it is false initially). If $flag goes

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines