- From: Yutaka Hirano <notifications@github.com>
- Date: Mon, 15 Dec 2014 04:12:05 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Monday, 15 December 2014 12:12:35 UTC
> @@ -46,14 +48,27 @@ export default class ReadableStream {
> }
>
> get closed() {
> + if (this._reader !== undefined) {
> + return this._reader._lockReleased.then(() => this._closedPromise);
Another reader can be acquired after the release, so
``
return this._reader._lockReleased.then(() => this.closed);
``
seems better.
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/251/files#r21819821
Received on Monday, 15 December 2014 12:12:35 UTC