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

Function sleep

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

Source from the content-addressed store, hash-verified

36 },
37 async ({ interval, count }, extra): Promise<CallToolResult> => {
38 const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
39 let counter = 0;
40
41 // Send the initial notification

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…