1Data::Stream::Bulk::CalUlsbearckC(o3n)tributed Perl DocuDmaetnat:a:tSitorneam::Bulk::Callback(3)
2
3
4
6 Data::Stream::Bulk::Callback - Callback based bulk iterator
7
9 Data::Stream::Bulk::Callback->new(
10 callback => sub {
11 if ( @more_items = get_some() ) {
12 return \@more_items;
13 } else {
14 return; # done
15 }
16 },
17 }
18
20 This class provides a callback based implementation of
21 Data::Stream::Bulk.
22
24 callback
25 The subroutine that is called when more items are needed.
26
27 Should return an array reference for the next block, or a false value
28 if there is nothing left.
29
31 get_more
32 See Data::Stream::Bulk::DoneFlag.
33
34 Reinvokes "callback".
35
37 Yuval Kogman <nothingmuch@woobling.org>
38
40 This software is copyright (c) 2010 by Yuval Kogman.
41
42 This is free software; you can redistribute it and/or modify it under
43 the same terms as the Perl 5 programming language system itself.
44
45
46
47perl v5.12.1 2010-08-24 Data::Stream::Bulk::Callback(3)