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

Function enqueue

packages/computer/src/shell.ts:306–312  ·  view source on GitHub ↗
(
    controller: TransformStreamDefaultController<WorkspaceExecEvent<E>>,
    event: WorkspaceExecEvent<E>,
  )

Source from the content-addressed store, hash-verified

304 let stderrMeta: { id: string; seq: number } | undefined;
305 let lastSeq = 0;
306 const enqueue = (
307 controller: TransformStreamDefaultController<WorkspaceExecEvent<E>>,
308 event: WorkspaceExecEvent<E>,
309 ) => {
310 lastSeq = event.seq;
311 controller.enqueue(event);
312 };
313 const flushPending = (
314 controller: TransformStreamDefaultController<WorkspaceExecEvent<E>>,
315 beforeSeq?: number,

Callers 2

flushPendingFunction · 0.70
transformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected