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

https://streams.spec.whatwg.org/#example-manual-write-with-backpressure

We're already awaiting writer.ready. Awaiting writer.write() seems counterproductive, as it means that even if the writable stream has a large high water mark, we won't be writing multiple chunks to fill that buffer.

-- 
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

Received on Wednesday, 31 January 2018 16:00:39 UTC