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

Comparing Coro/Coro.pm (file contents):
Revision 1.328 by root, Sat Sep 6 20:14:25 2014 UTC vs.
Revision 1.329 by root, Tue Oct 14 21:54:13 2014 UTC

1021otherwise you might suffer from crashes or worse. The only event library 1021otherwise you might suffer from crashes or worse. The only event library
1022currently known that is safe to use without C<unblock_sub> is L<EV> (but 1022currently known that is safe to use without C<unblock_sub> is L<EV> (but
1023you might still run into deadlocks if all event loops are blocked). 1023you might still run into deadlocks if all event loops are blocked).
1024 1024
1025Coro will try to catch you when you block in the event loop 1025Coro will try to catch you when you block in the event loop
1026("FATAL:$Coro::IDLE blocked itself"), but this is just best effort and 1026("FATAL:$Coro::idle blocked itself"), but this is just best effort and
1027only works when you do not run your own event loop. 1027only works when you do not run your own event loop.
1028 1028
1029This function allows your callbacks to block by executing them in another 1029This function allows your callbacks to block by executing them in another
1030coro where it is safe to block. One example where blocking is handy 1030coro where it is safe to block. One example where blocking is handy
1031is when you use the L<Coro::AIO|Coro::AIO> functions to save results to 1031is when you use the L<Coro::AIO|Coro::AIO> functions to save results to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines