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

Function getExec

packages/computer/src/client.ts:295–301  ·  view source on GitHub ↗
(id: string, options?: RuntimeGetOptions)

Source from the content-addressed store, hash-verified

293 : rehydrate<undefined>(handle, metadata);
294 }
295 const getExec = async (id: string, options?: RuntimeGetOptions) => {
296 const handle = await runtime.getExec(id, options as Record<string, unknown> | undefined);
297 const metadata = { id, backend: options?.backend };
298 return options?.encoding === "utf8"
299 ? rehydrate<"utf8">(handle, metadata)
300 : rehydrate<undefined>(handle, metadata);
301 };
302 const killExec = (id: string, options?: RuntimeKillOptions) => runtime.killExec(id, options);
303 const disposeExec = (id: string, options?: { backend?: string }) =>
304 runtime.disposeExec(id, options);

Callers

nothing calls this directly

Calls 1

getExecMethod · 0.65

Tested by

no test coverage detected