MCPcopy Index your code
hub / github.com/simstudioai/sim / scheduleFlush

Function scheduleFlush

apps/sim/lib/execution/event-buffer.ts:761–767  ·  view source on GitHub ↗
(delayMs = FLUSH_INTERVAL_MS)

Source from the content-addressed store, hash-verified

759 }
760
761 const scheduleFlush = (delayMs = FLUSH_INTERVAL_MS) => {
762 if (flushTimer) return
763 flushTimer = setTimeout(() => {
764 flushTimer = null
765 void flushPending()
766 }, delayMs)
767 }
768
769 const reserveIds = async (minCount: number) => {
770 const reserveCount = Math.max(RESERVE_BATCH, minCount)

Callers 2

flushPendingFunction · 0.70
writeCoreFunction · 0.70

Calls 1

flushPendingFunction · 0.85

Tested by

no test coverage detected