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

Function cancel

packages/computer/src/shell.ts:412–423  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

410 }
411 },
412 async cancel(reason) {
413 try {
414 await reader.cancel(reason);
415 } finally {
416 reader.releaseLock();
417 resolveOutcome({
418 applied: 0,
419 skipped: [],
420 sync: { status: "pending", applied: 0, skipped: [], error: safeErrorMessage(reason) },
421 });
422 }
423 },
424 },
425 { highWaterMark: 0 },
426 );

Callers

nothing calls this directly

Calls 3

safeErrorMessageFunction · 0.85
finishFunction · 0.85
cancelMethod · 0.65

Tested by

no test coverage detected