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

Method disposeExec

packages/computer/src/runtime/runtime.ts:153–161  ·  view source on GitHub ↗
(id: string, options: WorkspaceRuntimeDisposeOptions = {})

Source from the content-addressed store, hash-verified

151 }
152
153 async disposeExec(id: string, options: WorkspaceRuntimeDisposeOptions = {}): Promise<void> {
154 assertExecutionId(id);
155 const backend = this.#backend(options.backend);
156 if (this.#options.commandBackendIds.has(backend)) {
157 await this.#options.shell().dispose(id, { backend });
158 return;
159 }
160 await (await this.#options.moduleHandle(backend)).disposeExec({ id });
161 }
162
163 #backend(requested: string | undefined): string {
164 const backend = this.#options.resolveBackendId(requested);

Callers

nothing calls this directly

Calls 6

#backendMethod · 0.95
hasMethod · 0.80
shellMethod · 0.80
assertExecutionIdFunction · 0.70
disposeMethod · 0.65
disposeExecMethod · 0.65

Tested by

no test coverage detected