MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / sleep

Function sleep

apps/api/e2e/lib.ts:47–47  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

45
46// ── Timing ──────────────────────────────────────────────────────────────────
47export const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
48
49/** Poll `fn` until it returns a truthy value or the timeout elapses. */
50export async function pollUntil<T>(

Callers 6

drainFunction · 0.90
scenarioSingleSessionFunction · 0.90
scenarioBoundaryFunction · 0.90
pollUntilFunction · 0.70
waitForQueueToEmptyFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected