MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / delay

Function delay

apps/desktop/src/main/app-config.test.ts:43–43  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

41let savedEnv: Record<string, string | undefined> = {}
42
43const delay = (ms: number): Promise<void> => new Promise((r) => setTimeout(r, ms))
44async function waitFor(pred: () => boolean, timeoutMs: number): Promise<void> {
45 const start = Date.now()
46 while (!pred()) {

Callers 2

waitForFunction · 0.85
app-config.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected