Re: [whatwg/streams] Specify ReadableStream.[[Transfer]] (#623)

> The fact that readables and writables are so different here implies to me I might be missing something.

The underlyingSource of the transferred stream could only see backpressure if its queue isn't being dequeued from, and it fills up to the HWM=5. Likewise, after writing one chunk, why wouldn't the main thread continue to see `writer.desiredSize` as 0 for as long as its internal queue wasn't dequeued from, either?

The producer realm has to somehow know when not to dequeue something and send it off to the other side. it can't just send chunks off without some kind of ready signal. Isn't it the same in both cases?

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

Received on Saturday, 1 April 2017 23:18:57 UTC