Data::...llback(3pm)

πŸ“¦
version 0.11 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– 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 β€” see Data::Stream::Bulk::DoneFlag for the deets. What it does here is reinvoke callback. That's the move. πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Yuval Kogman <nothingmuch@woobling.org> β€” thank you for your service, king. 🫢


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