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.400 by root, Fri Mar 30 02:26:07 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 = '6.14'; 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
3026 3030
3027 3031
3028=head1 AUTHOR 3032=head1 AUTHOR
3029 3033
3030 Marc Lehmann <schmorp@schmorp.de> 3034 Marc Lehmann <schmorp@schmorp.de>
3031 http://home.schmorp.de/ 3035 http://anyevent.schmorp.de
3032 3036
3033=cut 3037=cut
3034 3038
30351 30391
3036 3040

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines