Re: [whatwg/streams] "await writer.write(bytes);" in example seems wrong (#874)

Oh, right, in this particular example it is the same, good point. Hmm. I'd still like to not encourage waiting on writer.write() as except in cases where you're explicitly using desiredSize, it's not a good idea.

This may benefit from two examples, one to demonstrate desiredSize and one to demonstrate how if you don't use desiredSize, ready and write() will get out of sync.

And yeah, we should get rid of the `window`.

-- 
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/issues/874#issuecomment-364121775

Received on Thursday, 8 February 2018 14:09:13 UTC