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

Comparing AnyEvent-MP/MP.pm (file contents):
Revision 1.113 by root, Sat Apr 3 15:32:18 2010 UTC vs.
Revision 1.114 by root, Thu Apr 22 16:06:19 2010 UTC

495Remembers C<$SELF> and creates a closure out of the BLOCK. When the 495Remembers C<$SELF> and creates a closure out of the BLOCK. When the
496closure is executed, sets up the environment in the same way as in C<rcv> 496closure is executed, sets up the environment in the same way as in C<rcv>
497callbacks, i.e. runtime errors will cause the port to get C<kil>ed. 497callbacks, i.e. runtime errors will cause the port to get C<kil>ed.
498 498
499The effect is basically as if it returned C<< sub { peval $SELF, sub { 499The effect is basically as if it returned C<< sub { peval $SELF, sub {
500BLOCK } } >>. 500BLOCK }, @_ } >>.
501 501
502This is useful when you register callbacks from C<rcv> callbacks: 502This is useful when you register callbacks from C<rcv> callbacks:
503 503
504 rcv delayed_reply => sub { 504 rcv delayed_reply => sub {
505 my ($delay, @reply) = @_; 505 my ($delay, @reply) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines