Skip to content

Commit 9fc243e

Browse files
committed
Note ms granularity for Supply.batch ref #3744
1 parent 980a6bb commit 9fc243e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/Type/Supply.pod6

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,15 @@ C<&mapper> and emits it to the new supply.
371371
method batch(Supply:D: :$elems, :$seconds --> Supply:D)
372372
373373
Creates a new supply that batches the values of the given supply by either
374-
the number of elements in the batch (using C<:elems>) or the maximum number of
375-
seconds (using the C<:seconds>) or both. Any remaining values are emitted in
374+
the number of elements in the batch (using C<:elems>) or a duration
375+
(using C<:seconds>) or both. Any remaining values are emitted in
376376
a final batch when the supply is done.
377377
378+
B<Note>: Since Rakudo version 2020.12, the C<:seconds> parameter has
379+
a millisecond granularity: for example a 1 millisecond duration could
380+
be specified as C<:seconds(0.001)>. Before Rakudo version 2020.12,
381+
the C<:seconds> parameter has a second granularity.
382+
378383
=head2 method elems
379384
380385
method elems(Supply:D: $seconds? --> Supply:D)

0 commit comments

Comments
 (0)