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

Comparing Coro/Coro.pm (file contents):
Revision 1.222 by root, Tue Nov 18 08:59:46 2008 UTC vs.
Revision 1.223 by root, Tue Nov 18 10:44:07 2008 UTC

441inside the coroutine at the next convenient point in time. Otherwise 441inside the coroutine at the next convenient point in time. Otherwise
442clears the exception object. 442clears the exception object.
443 443
444Coro will check for the exception each time a schedule-like-function 444Coro will check for the exception each time a schedule-like-function
445returns, i.e. after each C<schedule>, C<cede>, C<< Coro::Semaphore->down 445returns, i.e. after each C<schedule>, C<cede>, C<< Coro::Semaphore->down
446>>, C<< Coro::Handle->readable >> and so on. Note that this means that 446>>, C<< Coro::Handle->readable >> and so on. Most of these functions
447when a coroutine is acquiring a lock, it might only throw after it has 447detect this case and return early in case an exception is pending.
448sucessfully acquired it.
449 448
450The exception object will be thrown "as is" with the specified scalar in 449The exception object will be thrown "as is" with the specified scalar in
451C<$@>, i.e. if it is a string, no line number or newline will be appended 450C<$@>, i.e. if it is a string, no line number or newline will be appended
452(unlike with C<die>). 451(unlike with C<die>).
453 452

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines