[whatwg/streams] Editorial: make close() return this.[[closedPromise]] (#724)

When re-reading the writable streams section I noticed the statement in one of the examples:

> In the previous example we only paid attention to the success or failure of the entire stream, by looking at the promise returned by its close() method. That promise **(which can also be accessed using the closed getter)**

I wanted to make sure the bolded part was still true. This was not obviously the case from the spec (although it is true if you trace things through). I think it could be made more obvious by making the close() method return stream.[[closedPromise]], and thus making WritableStreamDefaultWriterClose return nothing.

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

Received on Wednesday, 5 April 2017 09:16:34 UTC