MCPcopy Create free account
hub / github.com/apache/maka / drainHostToolOperations

Function drainHostToolOperations

packages/code-mode/src/quickjs.ts:108–110  ·  view source on GitHub ↗
(operations: ReadonlySet<Promise<unknown>>)

Source from the content-addressed store, hash-verified

106}
107
108async function drainHostToolOperations(operations: ReadonlySet<Promise<unknown>>): Promise<void> {
109 while (operations.size > 0) await Promise.allSettled([...operations]);
110}
111
112function normalizeQuickJsError(error: unknown): CodeModeDiagnostic {
113 const message = error instanceof Error ? error.message : String(error);

Callers 1

executeCodeCellImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected