Data::Stream::Bulk::Callback(3pm)

Data::Stream::Bulk::Callback3pm

Callback based bulk iterator

Usage

        Data::Stream::Bulk::Callback->new(
                callback => sub {
                        if ( @more_items = get_some() ) {
                                return \@more_items;
                        } else {
                                return; # done
                        }
                },
        }

Version

version 0.11

Overview

This class provides a callback based implementation of Data::Stream::Bulk.

Attributes

callback

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.

Methods

get_more

See Data::Stream::Bulk::DoneFlag.

Reinvokes "callback".

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7–10
  3. 11–13

Author

Yuval Kogman <[email protected]>

From libdata-stream-bulk-perl 0.11-1.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.