Skip to content

Commit

Permalink
Spec Supply.grab
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 3, 2014
1 parent 850f8ed commit 877b5f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions S17-concurrency.pod
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,14 @@ or will be broken when the C<Supply> is done before a value is produced.
Produces a C<Supply> that will only C<more> the B<last> given number (default
1) C<more>'s of the given C<Supply> when it is C<done>.

=item grab

my $g = $s.grab( { .sort } ); # sort the values of a Supply

Produces a C<Supply> will grab all C<more>'s of the given C<Supply> until it
is done. It will then call the given closure and then C<more> each of the
return values of the closure, and then C<done> the Supply that was produced.

=item flat

my $f = $s.flat;
Expand Down

0 comments on commit 877b5f9

Please sign in to comment.