MCPcopy Create free account
hub / github.com/EvoMap/evolver / sleep

Function sleep

test/proxyGeminiE2E.test.js:22–22  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

20const enc = new TextEncoder();
21const sse = (parts) => new ReadableStream({ start(c) { for (const p of parts) c.enqueue(enc.encode(p)); c.close(); } });
22const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
23
24// Mock Gemini upstream, faithful to Google's behavior:
25// - :streamGenerateContent?alt=sse -> SSE (text/event-stream)

Callers 1

readRowsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected