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.18 by root, Mon Aug 3 21:35:03 2009 UTC vs.
Revision 1.19 by root, Mon Aug 3 21:37:19 2009 UTC

201 my $cb = shift; 201 my $cb = shift;
202 my $id = "$AnyEvent::MP::Base::UNIQ." . $AnyEvent::MP::Base::ID++; 202 my $id = "$AnyEvent::MP::Base::UNIQ." . $AnyEvent::MP::Base::ID++;
203 203
204 $AnyEvent::MP::Base::PORT{$id} = sub { 204 $AnyEvent::MP::Base::PORT{$id} = sub {
205 &$cb 205 &$cb
206 and delete $AnyEvent::MP::Base::PORT{$id}; 206 and del $id;
207 }; 207 };
208 208
209 "$NODE#$id" 209 "$NODE#$id"
210} 210}
211 211

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines