we (web engine): Experimental web browser project to understand the limits of Claude
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Harden Streams API backpressure and abort behavior #203

open opened by pierrelf.com

The Streams API implementation covers the core objects, pipe/tee, and byte streams, but Phase 20 needs robust backpressure and AbortSignal behavior across composed streams. Tighten the implementation and tests around pipeTo(), pipeThrough(), tee(), custom underlying sources/sinks, and queued writes.

Acceptance criteria:

  • pipeTo() observes AbortSignal and calls the correct cancel/abort hooks on source and destination.
  • WritableStream backpressure prevents unbounded synchronous queue growth in common pipe chains.
  • tee() handles cancellation of one or both branches without dropping chunks for the surviving branch.
  • Byte stream/BYOB reads preserve chunk order and close/error correctly.
  • Add JS VM tests for abort, backpressure, tee cancellation, and BYOB edge cases.
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:meotu43t6usg4qdwzenk4s2t/sh.tangled.repo.issue/3mm23sn4mmf2c