Re: [whatwg/streams] Should we add writableStream.write()? readableStream.read()? (#1072)

An alternative would be to go the other way around, and have `stream.write()` only accept blobs/strings/bytes (and not accept "command" chunks, for which you should use `stream.truncate()` and `stream.close()`.) But I'm not sure pushing in that direction would be sound; it feels more like I'm trying to justify the separation, versus actually making the API better.

-- 
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/1072#issuecomment-681129948

Received on Wednesday, 26 August 2020 21:20:12 UTC