MCPcopy Create free account
hub / github.com/cortexkit/magic-context / sleep

Function sleep

packages/plugin/scripts/longmemeval/runner.ts:97–99  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

95}
96
97function sleep(ms: number): Promise<void> {
98 return new Promise((resolveSleep) => setTimeout(resolveSleep, ms));
99}
100
101async function enqueueWrite(operation: () => Promise<void>): Promise<void> {
102 const next = writeQueue.then(operation, operation);

Callers 3

sleepWithLogFunction · 0.70
withRetryFunction · 0.70

Calls

no outgoing calls

Tested by 1