Async-Chain
view release on metacpan or search on metacpan
lib/Async/Chain.pm view on Meta::CPAN
If you don't need to skip or hitch links, you can use 'kseq' function from CPS
module, that slightly faster.
=head1 SUBROUTINES/METHODS
=cut
# Internal method called by use function
sub import {
$caller = (caller())[0];
*{$caller . "::chain"} = \&chain;
}
# Internal method used for reduction to code.
sub _to_code {
my $self = shift;
return sub {
my $cb = shift @{$self} or
return sub { };
$cb->[1]->($self, @_);
( run in 0.281 second using v1.01-cache-2.11-cpan-b61123c0432 )