MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / delay

Function delay

__tests__/proxy-shutdown.test.ts:19–19  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

17
18const MODULE = path.resolve(__dirname, '../dist/mcp/proxy.js');
19const delay = (ms: number) => new Promise<void>((resolve) => setTimeout(resolve, ms));
20
21async function until(check: () => boolean, what: string, timeout = 10_000): Promise<void> {
22 const deadline = Date.now() + timeout;

Callers 1

untilFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected