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

Function ensureFlushTimer

apps/sim/lib/analytics/profound.ts:78–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78function ensureFlushTimer(): void {
79 if (flushTimer) return
80 flushTimer = setInterval(() => {
81 flush().catch(() => {})
82 }, FLUSH_INTERVAL_MS)
83 flushTimer.unref()
84}
85
86/**
87 * Queues a request log entry for the next batch flush to Profound.

Callers 1

sendToProfoundFunction · 0.85

Calls 1

flushFunction · 0.70

Tested by

no test coverage detected