--- AnyEvent/lib/AnyEvent.pm 2009/08/09 16:05:11 1.279 +++ AnyEvent/lib/AnyEvent.pm 2009/08/11 01:18:27 1.282 @@ -668,9 +668,10 @@ Every call to C<< ->begin >> will increment a counter, and every call to C<< ->end >> will decrement it. If the counter reaches C<0> in C<< ->end ->>, the (last) callback passed to C will be executed. That callback -is I to call C<< ->send >>, but that is not required. If no -callback was set, C will be called without any arguments. +>>, the (last) callback passed to C will be executed, passing the +condvar as first argument. That callback is I to call C<< ->send +>>, but that is not required. If no group callback was set, C will +be called without any arguments. You can think of C<< $cv->send >> giving you an OR condition (one call sends), while C<< $cv->begin >> and C<< $cv->end >> giving you an AND @@ -707,7 +708,7 @@ my $cv = AnyEvent->condvar; my %result; - $cv->begin (sub { $cv->send (\%result) }); + $cv->begin (sub { shift->send (\%result) }); for my $host (@list_of_hosts) { $cv->begin; @@ -1117,7 +1118,7 @@ use Carp (); -our $VERSION = '5.0'; +our $VERSION = '5.1'; our $MODEL; our $AUTOLOAD;