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.16 by root, Sun Aug 2 19:29:41 2009 UTC vs.
Revision 1.17 by root, Mon Aug 3 08:35:40 2009 UTC

165 165
166The block will be called for every message received on the port. When the 166The block will be called for every message received on the port. When the
167callback returns a true value its job is considered "done" and the port 167callback returns a true value its job is considered "done" and the port
168will be destroyed. Otherwise it will stay alive. 168will be destroyed. Otherwise it will stay alive.
169 169
170The message will be passed as-is, no extra argument (ie.. no port id) will 170The message will be passed as-is, no extra argument (i.e. no port id) will
171be passed to the callback. 171be passed to the callback.
172 172
173If you need the local port id in the callback, this works nicely: 173If you need the local port id in the callback, this works nicely:
174 174
175 my $port; $port = miniport { 175 my $port; $port = miniport {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines