MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / sleep

Function sleep

src/examples/server/ssePollingExample.ts:43–43  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

41 {},
42 async (_args, extra): Promise<CallToolResult> => {
43 const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
44
45 console.log(`[${extra.sessionId}] Starting long-task...`);
46

Callers 1

getServerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…