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

Function finish

packages/computer/src/shell.ts:512–523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

510 const reader = stream.getReader();
511 let finished = false;
512 const finish = () => {
513 if (finished) return;
514 finished = true;
515 try {
516 reader.releaseLock();
517 } catch {}
518 try {
519 onDone();
520 } catch {
521 // Disposer failures cannot be recovered at this boundary.
522 }
523 };
524 return new ReadableStream<T>(
525 {
526 async pull(controller) {

Callers 3

pullFunction · 0.85
cancelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected