Schedules the pending flush. The default, queueMicrotask, coalesces the calls of one
event-loop turn — the same-burst case, with no added latency. A host that wants a wider
window injects its own scheduler (e.g. a short timer) and buys more batching for a few
milliseconds of delay.
OptionalmaxBatch
maxBatch?:number
Largest batch one flush submits; a full queue flushes immediately. Default 16.
Schedules the pending flush. The default,
queueMicrotask, coalesces the calls of one event-loop turn — the same-burst case, with no added latency. A host that wants a wider window injects its own scheduler (e.g. a short timer) and buys more batching for a few milliseconds of delay.