Wraps an economy's submit in batch coalescing. Per-call CallOptions cannot ride a
shared batch, so a call that passes options bypasses the queue and submits directly — it keeps
its exact semantics and simply forgoes the batching win.
constcoalesced = createSubmitCoalescer(economy, { maxBatch:32 }); // A burst of independent operations pays one database commit, each caller // still resolving with exactly its own outcome. constoutcomes = awaitPromise.all( operations.map((operation) =>coalesced.submit(operation)), );
Wraps an economy's submit in batch coalescing. Per-call CallOptions cannot ride a shared batch, so a call that passes options bypasses the queue and submits directly — it keeps its exact semantics and simply forgoes the batching win.