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.101 by root, Tue Oct 6 01:31:22 2009 UTC vs.
Revision 1.102 by root, Tue Oct 6 13:37:52 2009 UTC

383 msg1 => sub { ... }, 383 msg1 => sub { ... },
384 ... 384 ...
385 ; 385 ;
386 386
387Example: temporarily register a rcv callback for a tag matching some port 387Example: temporarily register a rcv callback for a tag matching some port
388(e.g. for a rpc reply) and unregister it after a message was received. 388(e.g. for an rpc reply) and unregister it after a message was received.
389 389
390 rcv $port, $otherport => sub { 390 rcv $port, $otherport => sub {
391 my @reply = @_; 391 my @reply = @_;
392 392
393 rcv $SELF, $otherport; 393 rcv $SELF, $otherport;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines