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

Function sleep

test/proxyOllamaE2E.test.js:20–20  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

18const enc = new TextEncoder();
19const ndjson = (parts) => new ReadableStream({ start(c) { for (const p of parts) c.enqueue(enc.encode(p)); c.close(); } });
20const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
21
22function mockOllama(reqPath, body) {
23 const stream = !(body && body.stream === false); // ollama streams by default

Callers 1

readRowsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected