Data::Stream::Bulk::Callback - Callback based bulk iterator
Data::Stream::Bulk::Callback->new( callback => sub { if ( @more_items = get_some() ) { return \@more_items; } else { return; # done } }, }
This class provides a callback based implementation of Data::Stream::Bulk.
The subroutine that is called when more items are needed.
Should return an array reference for the next block, or a false value if there is nothing left.
See Data::Stream::Bulk::DoneFlag.
Reinvokes callback.
callback
To install Data::Stream::Bulk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Stream::Bulk
CPAN shell
perl -MCPAN -e shell install Data::Stream::Bulk
For more information on module installation, please visit the detailed CPAN module installation guide.