ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.56 by root, Sun Oct 22 00:53:47 2006 UTC vs.
Revision 1.57 by root, Sun Oct 22 01:28:31 2006 UTC

603Their lifetime, simplified, looks like this: when they are empty, they 603Their lifetime, simplified, looks like this: when they are empty, they
604will finish very quickly. If they contain only requests that are in the 604will finish very quickly. If they contain only requests that are in the
605C<done> state, they will also finish. Otherwise they will continue to 605C<done> state, they will also finish. Otherwise they will continue to
606exist. 606exist.
607 607
608That means after creating a group you have some time to add requests. And
609in the callbacks of those requests, you can add further requests to the
610group. And only when all those requests have finished will the the group
611itself finish.
612
608=over 4 613=over 4
609 614
610=item $grp->add (...) 615=item $grp->add (...)
611 616
612=item add $grp ... 617=item add $grp ...
613 618
614Add one or more 619Add one or more requests to the group. Any type of L<IO::AIO::REQ> can
615Cancels the request, if possible. Has the effect of skipping execution 620be added, including other groups, as long as you do not create circular
616when entering the B<execute> state and skipping calling the callback when 621dependencies.
617entering the the B<result> state, but will leave the request otherwise 622
618untouched. That means that requests that currently execute will not be 623Returns all its arguments.
619stopped and resources held by the request will not be freed prematurely.
620 624
621=back 625=back
622 626
623=head2 SUPPORT FUNCTIONS 627=head2 SUPPORT FUNCTIONS
624 628

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines