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

Comparing Coro/Coro.pm (file contents):
Revision 1.251 by root, Mon Mar 16 22:22:12 2009 UTC vs.
Revision 1.252 by root, Thu Apr 16 20:07:21 2009 UTC

346 346
347These functions are best understood by an example: The following function 347These functions are best understood by an example: The following function
348will change the current timezone to "Antarctica/South_Pole", which 348will change the current timezone to "Antarctica/South_Pole", which
349requires a call to C<tzset>, but by using C<on_enter> and C<on_leave>, 349requires a call to C<tzset>, but by using C<on_enter> and C<on_leave>,
350which remember/change the current timezone and restore the previous 350which remember/change the current timezone and restore the previous
351value, respectively, the timezone is only changes for the coro that 351value, respectively, the timezone is only changed for the coro that
352installed those handlers. 352installed those handlers.
353 353
354 use POSIX qw(tzset); 354 use POSIX qw(tzset);
355 355
356 async { 356 async {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines