You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Batch resource (#9): new Batch<T>(sim, batchSize, { maxWait?, unbounded?, name? }) accumulates items and releases them as full batches, or partial batches maxWait after the first item arrived. yield batch.put(item) blocks while a formed batch is still waiting to be taken (back-pressure) unless unbounded; yield batch.take() resumes with items and isPartial. Statistics: batches formed, partial batches, average batch size, item wait, put wait, take wait. Works inside anyOf/allOf and is cleaned up on interrupt.