MCPcopy
hub / github.com/vitest-dev/vitest / rpcDone

Function rpcDone

packages/vitest/src/runtime/rpc.ts:56–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54const promises = new Set<Promise<unknown>>()
55
56export async function rpcDone(): Promise<unknown[] | undefined> {
57 if (!promises.size) {
58 return
59 }
60 const awaitable = Array.from(promises)
61 return Promise.all(awaitable)
62}
63
64const onCancelCallbacks: ((reason: CancelReason) => void)[] = []
65

Callers 1

executeFunction · 0.90

Calls 1

allMethod · 0.80

Tested by

no test coverage detected