Re: [whatwg/streams] Add support for ReadableStream "transfer" type (PR #1271)

> Another alternative I can think of is `type: 'owning'`.

I'll change to this, it is less confusing than `transfer`.

> I would be most comfortable with requiring `enqueue(videoFrame, { transfer: [videoFrame] })`.

Yes, let's start with this and let's do the shortcut as a follow-up.

> * ReadableStreamTee might fail with those transfer-only values.

ReadableStreamTee would error both branches according the current algorithm.
Maybe we should relax this rule to only error the second branch. Let's also look at this in a follow-up.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1271#issuecomment-1506871571
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/pull/1271/c1506871571@github.com>

Received on Thursday, 13 April 2023 12:22:37 UTC