Documentation for routine batch

Documentation for routine batch, assembled from the following types:

class Any

From Any

(Any) method batch

Defined As:

    method batch(--> TODO)

TODO

class Supply

From Supply

(Supply) method batch

method batch(Supply:D: :$elems:$seconds --> Supply:D)

Creates a new supply that batches the values of the given supply by either the number of elements in the batch (using :elems) or the maximum number of seconds (using the :seconds) or both. Any remaining values are emitted in a final batch when the supply is done.