ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.403 by root, Thu Apr 12 08:13:05 2012 UTC vs.
Revision 1.408 by root, Thu Dec 6 12:04:23 2012 UTC

763 }; 763 };
764 } 764 }
765 765
766 $cv->end; 766 $cv->end;
767 767
768 ...
769
770 my $results = $cv->recv;
771
768This code fragment supposedly pings a number of hosts and calls 772This code fragment supposedly pings a number of hosts and calls
769C<send> after results for all then have have been gathered - in any 773C<send> after results for all then have have been gathered - in any
770order. To achieve this, the code issues a call to C<begin> when it starts 774order. To achieve this, the code issues a call to C<begin> when it starts
771each ping request and calls C<end> when it has received some result for 775each ping request and calls C<end> when it has received some result for
772it. Since C<begin> and C<end> only maintain a counter, the order in which 776it. Since C<begin> and C<end> only maintain a counter, the order in which
1234 1238
1235BEGIN { AnyEvent::common_sense } 1239BEGIN { AnyEvent::common_sense }
1236 1240
1237use Carp (); 1241use Carp ();
1238 1242
1239our $VERSION = '7.0'; 1243our $VERSION = '7.04';
1240our $MODEL; 1244our $MODEL;
1241our @ISA; 1245our @ISA;
1242our @REGISTRY; 1246our @REGISTRY;
1243our $VERBOSE; 1247our $VERBOSE;
1244our %PROTOCOL; # (ipv4|ipv6) => (1|2), higher numbers are preferred 1248our %PROTOCOL; # (ipv4|ipv6) => (1|2), higher numbers are preferred

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines