Data::...llback(3pm)
π Data::Stream::Bulk::Callback π
okay bestie, so this is a page from the User Contributed Perl Documentation section β the 3pm part of your man pages, iykyk β and it's all about Data::Stream::Bulk::Callback, a callback based bulk iterator. That's the whole vibe. Let's get into it. π¦
β¨ VERSION β¨
This is version 0.11. Slay. π
πΈ SYNOPSIS πΈ
Data::Stream::Bulk::Callback->new(
callback => sub {
if ( @more_items = get_some() ) {
return \@more_items;
} else {
return; # done
}
},
}
π DESCRIPTION π
So this class is out here providing a callback based implementation of Data::Stream::Bulk. That's it, that's the description. Short, sweet, iconic. π
π ATTRIBUTES π
callbackβ this is the subroutine that gets called whenever more items are needed. That's its whole job and honestly, respect. π
It should return an array reference for the next block, or a false value if there is nothing left. Like, if you're out of items? Return false. Done. No notes. β¨
π§ METHODS π§
get_moreβ seeData::Stream::Bulk::DoneFlagfor the deets. What it does here is reinvokecallback. That's the move. π₯
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β thank you for your service, king. π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So go off, legally speaking. πΈ
and that's a wrap, bestie!! π
this lil page came from perl v5.32.0, dated 2021-01-01, in the Data::...llback(3pm) section of the manual β periodt. go forth and iterate your bulks. β¨ππ¦
π¦ where this page comes from
- debian bookworm: libdata-stream-bulk-perl 0.11-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdata-stream-bulk-perl 0.11-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libdata-stream-bulk-perl 0.11-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdata-stream-bulk-perl 0.11-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms