Request for position on transferable streams
Transferable streams permit you to run code like worker.postMessage(stream, [stream]) where stream is a ReadableStream, WritableStream or TransformStream and have it do what you'd expect. The explainer <https://github.com/whatwg/streams/blob/master/transferable-streams-explainer.md> goes into more detail of why you'd want to do this, but briefly it provides a convenient way to do thread-offloading for streams-using code. The pull-request for the standard is at https://github.com/whatwg/streams/issues/276 and the web platform tests are at https://github.com/web-platform-tests/wpt/pull/24546. Any and all feedback is welcome! Thanks, Adam Rice, Chromium
Sorry, the link to the pull request should have been https://github.com/whatwg/streams/pull/1053. On Fri, 14 Aug 2020 at 11:56, Adam Rice <ricea@chromium.org> wrote:
Transferable streams permit you to run code like worker.postMessage(stream, [stream]) where stream is a ReadableStream, WritableStream or TransformStream and have it do what you'd expect. The explainer <https://github.com/whatwg/streams/blob/master/transferable-streams-explainer.md> goes into more detail of why you'd want to do this, but briefly it provides a convenient way to do thread-offloading for streams-using code.
The pull-request for the standard is at https://github.com/whatwg/streams/issues/276 and the web platform tests are at https://github.com/web-platform-tests/wpt/pull/24546.
Any and all feedback is welcome!
Thanks, Adam Rice, Chromium
Hi Adam, The current proposal seems useful to me. I like the fact it allows potential optimizations for native-backed streams like Request/Response body while working generally for any stream whose chunks are transferable. Le mar. 18 août 2020 à 11:14, Adam Rice <ricea@chromium.org> a écrit :
Sorry, the link to the pull request should have been https://github.com/whatwg/streams/pull/1053.
On Fri, 14 Aug 2020 at 11:56, Adam Rice <ricea@chromium.org> wrote:
Transferable streams permit you to run code like worker.postMessage(stream, [stream]) where stream is a ReadableStream, WritableStream or TransformStream and have it do what you'd expect. The explainer goes into more detail of why you'd want to do this, but briefly it provides a convenient way to do thread-offloading for streams-using code.
The pull-request for the standard is at https://github.com/whatwg/streams/issues/276 and the web platform tests are at https://github.com/web-platform-tests/wpt/pull/24546.
Any and all feedback is welcome!
Thanks, Adam Rice, Chromium
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
participants (2)
-
Adam Rice
-
youenn fablet