{
    "mode": "perldoc",
    "parameter": "Data::Stream::Bulk::DoneFlag",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Data%3A%3AStream%3A%3ABulk%3A%3ADoneFlag/json",
    "generated": "2026-06-12T07:26:19Z",
    "synopsis": "package Data::Stream::Bulk::Blah;\nuse Moose;\nwith qw(Data::Stream::Bulk::DoneFlag);\nsub getmore {\nif ( my @more = more() ) {\nreturn \\@more;\n} else {\nreturn;\n}\n}",
    "sections": {
        "NAME": {
            "content": "Data::Stream::Bulk::DoneFlag - Implement the \"isdone\" method in terms of a flag\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 0.11\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "package Data::Stream::Bulk::Blah;\nuse Moose;\n\nwith qw(Data::Stream::Bulk::DoneFlag);\n\nsub getmore {\nif ( my @more = more() ) {\nreturn \\@more;\n} else {\nreturn;\n}\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This role implements the \"Data::Stream::Bulk\" core API in terms of one method (\"getmore\").\n\nAs a convenience it calls \"finished\" when the stream is exhausted, so that cleanup may be done.\n\nThis is used by classes like Data::Stream::Bulk::DBI, Data::Stream::Bulk::Callback.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "isdone\nReturns the state of the iterator.\n\nnext\nAs long as the iterator is not yet done, calls \"getmore\".\n\nIf \"getmore\" returned a false value instead of an array reference then \"done\" is set,\n\"finished\" is called, and this \"next\" does nothing on subsequent calls.\n\nfinished\nA noop by default. Can be overridden if so desired.\n",
            "subsections": []
        },
        "REQUIREDMETHODS": {
            "content": "getmore\nReturns the next block of data as an array ref, or a false value if no items are left.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Yuval Kogman <nothingmuch@woobling.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2012 by Yuval Kogman.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "Data::Stream::Bulk::DoneFlag - Implement the \"isdone\" method in terms of a flag",
    "flags": [],
    "examples": [],
    "see_also": []
}