[whatwg/streams] Should there be a WritableStream.close() method? (#1007)

It appears that currently the only way to close (without aborting) a writable stream is by calling `getWriter`, and then calling `close()` on that writer. Would it make sense to also expose `close()` directly on `WritableStream` itself?

Presumably you'd only be able to call such a method if the stream isn't locked (just like abort on the stream can only be called if the stream isn't locked).

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

Received on Thursday, 1 August 2019 21:06:24 UTC