MCPcopy Create free account
hub / github.com/cloudflare/computer / drainExec

Function drainExec

packages/computer/src/workspace.test.ts:187–189  ·  view source on GitHub ↗
(handle: { result(): Promise<unknown> })

Source from the content-addressed store, hash-verified

185// the WorkspaceShell push/pull bracket. The selection tests don't
186// care about the values — only that exec ran on the right backend.
187async function drainExec(handle: { result(): Promise<unknown> }): Promise<void> {
188 await handle.result();
189}
190
191describe("Workspace backend selection", () => {
192 it("picks the first backend in the list as the default", async () => {

Callers 1

workspace.test.tsFile · 0.70

Calls 1

resultMethod · 0.65

Tested by

no test coverage detected