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.57 by root, Thu Nov 20 14:57:45 2008 UTC vs.
Revision 1.67 by root, Mon Jul 20 23:46:28 2009 UTC

1=head1 NAME 1=head1 NAME
2 2
3Coro::Timer - simple timer package, independent of used event loops 3Coro::Timer - timers and timeouts, independent of any event loop
4 4
5=head1 SYNOPSIS 5=head1 SYNOPSIS
6 6
7 use Coro::Timer qw(sleep timeout); 7 use Coro::Timer qw(sleep timeout);
8 # nothing exported by default 8 # nothing exported by default
28use AnyEvent (); 28use AnyEvent ();
29 29
30use Coro (); 30use Coro ();
31use Coro::AnyEvent (); 31use Coro::AnyEvent ();
32 32
33$VERSION = "5.0"; 33$VERSION = 5.16;
34@EXPORT_OK = qw(timeout sleep); 34@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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines