File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -371,10 +371,15 @@ C<&mapper> and emits it to the new supply.
371
371
method batch(Supply:D: :$elems, :$seconds --> Supply:D)
372
372
373
373
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
376
376
a final batch when the supply is done.
377
377
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
+
378
383
= head2 method elems
379
384
380
385
method elems(Supply:D: $seconds? --> Supply:D)
You can’t perform that action at this time.
0 commit comments