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.14 by pcg, Sun Sep 28 09:00:49 2003 UTC vs.
Revision 1.15 by pcg, Wed Nov 5 20:02:46 2003 UTC

22 22
23=cut 23=cut
24 24
25package Coro::Timer; 25package Coro::Timer;
26 26
27no warnings qw(uninitialized); 27BEGIN { eval { require warnings } && warnings->unimport ("uninitialized") }
28 28
29use Carp (); 29use Carp ();
30use Exporter; 30use Exporter;
31 31
32use Coro (); 32use Coro ();
33 33
34BEGIN { 34BEGIN {
35 eval "use Time::HiRes 'time'"; 35 eval "use Time::HiRes 'time'";
36} 36}
37 37
38$VERSION = 0.7; 38$VERSION = 0.8;
39@EXPORT_OK = qw(timeout sleep); 39@EXPORT_OK = qw(timeout sleep);
40 40
41=item $flag = timeout $seconds; 41=item $flag = timeout $seconds;
42 42
43This function will wake up the current coroutine after $seconds 43This function will wake up the current coroutine after $seconds

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines