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

Function sleep

src/mcp/index.ts:520–526  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

518}
519
520function sleep(ms: number): Promise<void> {
521 // Deliberately NOT unref'd. During the daemon connect/takeover retry loop we
522 // may be between processes — no socket bound yet, no transport, no listener
523 // pinning the event loop. An unref'd timer would let Node drain the loop and
524 // exit silently before we get a chance to try again.
525 return new Promise((resolve) => { setTimeout(resolve, ms); });
526}
527
528// Export for use in CLI
529export { StdioTransport } from './transport';

Callers 2

startDaemonProcessMethod · 0.70
getDaemonSocketMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected