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.23 by root, Tue Aug 4 18:46:16 2009 UTC vs.
Revision 1.24 by root, Tue Aug 4 20:00:00 2009 UTC

244sub mon_guard { 244sub mon_guard {
245 my ($port, @refs) = @_; 245 my ($port, @refs) = @_;
246 246
247 mon $port, sub { 0 && @refs } 247 mon $port, sub { 0 && @refs }
248} 248}
249
250=item lnk $port1, $port2
251
252Link two ports. This is simply a shorthand for:
253
254 mon $port1, $port2;
255 mon $port2, $port1;
256
257It means that if either one is killed abnormally, the other one gets
258killed as well.
249 259
250=item $local_port = port 260=item $local_port = port
251 261
252Create a new local port object that supports message matching. 262Create a new local port object that supports message matching.
253 263

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines