- From: Takeshi Yoshino <notifications@github.com>
- Date: Mon, 19 Jan 2015 21:47:10 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Tuesday, 20 January 2015 05:47:36 UTC
When the stream is closed, right, the `this@stream@[[closedPromise]]` which continues to be exposed is resolved and is correct also for the `reader.closed`'s concept. Please think of the case where the stream is not closed but the `reader.releaseLock()` is called. I'd expect that the promise obtained at `reader.closed` before `releaseLock()` call to be resolved on `releaseLock()` call. I think this is consistent with that `reader.closed` returns a resolved promise after `releaseLock()` call. Created a PR. See the tests. The promise obtained from `reader.closed` won't be fulfilled on `releaseLock()` call without the fix in the PR. https://github.com/whatwg/streams/pull/267 --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/commit/e1199763f3de8ae5e181310a4dc48b520789a3e8#commitcomment-9350435
Received on Tuesday, 20 January 2015 05:47:36 UTC