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

Function sleep

__tests__/query-pool.test.ts:22–22  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

20import type { ToolHandler, ToolResult } from '../src/mcp/tools';
21
22const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
23
24interface CallMsg { type: 'call'; id: number; toolName: string; args: Record<string, unknown> }
25type Action = { result: ToolResult } | { crash: true } | { hang: true } | { wait: Promise<ToolResult> };

Callers 1

query-pool.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected