Async-Group
view release on metacpan or search on metacpan
return sub{$self->callDone(@_)} ;
}
sub printEvent
{
my $self = shift ;
warn "$self->{name} ",shift if $self->{test} ;
}
# Call a set of asynchronous functions which MUST have their set of user
# callbacks.. Note that the user call-back invoked when the function MUST
# call the asyncDone function with a result.
#
# When all function calls are over (i.e. all call-back were performed)
# all the returned results are logically 'anded' and the resulting result
# is passed to the main user call-back function
sub run
{
my $self = shift ;
# 'set' => [ sub { } ,... ]
( run in 0.595 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )