#551: Transferable Streams Spec

Visit on Github.

Opened Aug 20, 2020

Saluton TAG!

I'm requesting a TAG review of transferable streams.

The streams APIs provide ubiquitous, interoperable primitives for creating, composing, and consuming streams of data. A natural thing to want to do with a stream is pass it off to a web worker. This provides a building block that is easy and natural to use for offloading work onto another thread. Once you can speak the language of streams, you can use that same language to make use of a Worker.

Further details:

  • I have reviewed the TAG's API Design Principles
  • Relevant time constraints or deadlines: No specific deadlines, however most users of WebRTC Insertable Streams are using transferable streams and are waiting for us to ship this.
  • The group where the work on this specification is currently being done: WHATWG
  • The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): WHATWG
  • Major unresolved issues with or opposition to this specification: Unresolved issue: when a stream is transferred twice, eg. A -> B -> C, a developer might reasonably expect that this leaves the stream in a state equivalent to A -> C. However, if the B context is terminated, the stream will error the next time an operation is performed on the stream. This behaviour is counter-intuitive, but the problem is very hard to fix. For more information, see the issue and the linked comment thread.
  • This work is being funded by: Google

You should also know that...

This feature previously had an early review at https://github.com/w3ctag/design-reviews/issues/332.

We'd prefer the TAG provide feedback as (please delete all but the desired option):

🐛 open issues in our GitHub repo for each point of feedback


Discussions