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 version 0.11
10
12 Data::Stream::Bulk::Callback->new(
13 callback => sub {
14 if ( @more_items = get_some() ) {
15 return \@more_items;
16 } else {
17 return; # done
18 }
19 },
20 }
21
23 This class provides a callback based implementation of
24 Data::Stream::Bulk.
25
27 callback
28 The subroutine that is called when more items are needed.
29
30 Should return an array reference for the next block, or a false
31 value if there is nothing left.
32
34 get_more
35 See Data::Stream::Bulk::DoneFlag.
36
37 Reinvokes "callback".
38
40 Yuval Kogman <nothingmuch@woobling.org>
41
43 This software is copyright (c) 2012 by Yuval Kogman.
44
45 This is free software; you can redistribute it and/or modify it under
46 the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.36.0 2023-01-20 Data::Stream::Bulk::Callback(3)