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

`close()` is certainly the odd-one-out here, as both `cancel()` and `abort()` have versions that operate on plain unlocked objects.

On the other hand, I don't find the `cancel()` and `abort()` variants all that useful anyway. Writing `writable.getWriter().close()` is not a terrible burden.

I assume this was a conscious choice when `WritableStream` was converted to be lockable. @domenic, do you happen to remember what the motivation was? 

-- 
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#issuecomment-517677119

Received on Friday, 2 August 2019 12:12:35 UTC