Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
s/buffering/batch/ jnthn++
  • Loading branch information
lizmat committed Apr 21, 2014
1 parent 13869e3 commit 9f36e02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions S17-concurrency.pod
Expand Up @@ -13,8 +13,8 @@ Synopsis 17: Concurrency

Created: 3 Nov 2013

Last Modified: 20 Apr 2014
Version: 17
Last Modified: 21 Apr 2014
Version: 18

This synopsis is based around the concurrency primitives and tools currently
being implemented in Rakudo on MoarVM and the JVM. It covers both things
Expand Down Expand Up @@ -597,11 +597,11 @@ Produces a C<Supply> that only provides sequentially different values, as
defined by the optional C<as> and C<with> named parameters (same as
L<List.squish>).

=item buffering
=item batch

my $b = $s.buffering( :elems(100), :seconds(1) );
my $b = $s.batch( :elems(100), :seconds(1) );

Produces a C<Supply> that buffers the values of the given Supply by either
Produces a C<Supply> that batches the values of the given Supply by either
the number of elements (using the C<elems> named parameter) or the maximum
number of seconds (using the C<seconds> named parameter) or both. Values
are grouped in a single array element when flushed.
Expand Down

0 comments on commit 9f36e02

Please sign in to comment.