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

Function enqueueWrite

packages/plugin/scripts/longmemeval/runner.ts:101–105  ·  view source on GitHub ↗
(operation: () => Promise<void>)

Source from the content-addressed store, hash-verified

99}
100
101async function enqueueWrite(operation: () => Promise<void>): Promise<void> {
102 const next = writeQueue.then(operation, operation);
103 writeQueue = next.catch(() => undefined);
104 await next;
105}
106
107async function sleepWithLog(config: RunnerConfig, label: string, delayMs: number): Promise<void> {
108 if (delayMs <= 0) return;

Callers 2

writeJsonAtomicFunction · 0.85
appendLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected