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.19 by root, Mon Aug 3 21:37:19 2009 UTC vs.
Revision 1.20 by root, Mon Aug 3 22:05:55 2009 UTC

118JSON is used, then only strings, numbers and arrays and hashes consisting 118JSON is used, then only strings, numbers and arrays and hashes consisting
119of those are allowed (no objects). When Storable is used, then anything 119of those are allowed (no objects). When Storable is used, then anything
120that Storable can serialise and deserialise is allowed, and for the local 120that Storable can serialise and deserialise is allowed, and for the local
121node, anything can be passed. 121node, anything can be passed.
122 122
123=item mon $portid, sub { } 123=item $guard = mon $portid, $cb->()
124 124
125#TODO monitor the given port 125Monitor the given port and call the given callback when the port is
126destroyed or connection to it's node is lost.
127
128#TODO
126 129
127=cut 130=cut
128 131
129sub mon { 132sub mon {
130 my ($noderef, $port) = split /#/, shift, 2; 133 my ($noderef, $port) = split /#/, shift, 2;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines