MCPcopy
hub / github.com/simstudioai/sim / isWithinCooldown

Function isWithinCooldown

apps/sim/lib/workspace-events/state.ts:69–72  ·  view source on GitHub ↗
(lastFiredAt: Date | null, cooldownMs: number)

Source from the content-addressed store, hash-verified

67}
68
69export function isWithinCooldown(lastFiredAt: Date | null, cooldownMs: number): boolean {
70 if (!lastFiredAt) return false
71 return Date.now() - lastFiredAt.getTime() < cooldownMs
72}

Callers 2

checkWatchedWorkflowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected