Creates a high-performance, zero-allocation batching queue.
This utility collects items marked as "dirty" and flushes them in a single batch.
⚠️ CRITICAL: Synchronous Processing Required
Because the internal sets are reused, the Set passed to the processor is instantly
cleared the moment the processor function returns. If you need to process the items
asynchronously, you must manually clone the set inside your processor.
Creates a high-performance, zero-allocation batching queue. This utility collects items marked as "dirty" and flushes them in a single batch.
Setpassed to theprocessoris instantly cleared the moment the processor function returns. If you need to process the items asynchronously, you must manually clone the set inside your processor.