- From: Yutaka Hirano <notifications@github.com>
- Date: Tue, 16 Dec 2014 17:26:59 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Wednesday, 17 December 2014 01:27:28 UTC
> @@ -517,9 +538,13 @@ Instances of <code>ReadableStream</code> are created with the internal slots des > <div class="note"> > The <code>closed</code> getter returns a promise that will be fulfilled when the stream becomes closed, or rejected > if it ever errors. > + > + If the stream is <a>locked to a reader</a>, neither of these will occur until the reader releases its lock. The comment was mine, but it was wrong, because it doesn't work with the second example. ``` return this@[[closedPromise]].then((x) => this._reader ? this._reader._lockReleased.then(() => x): x); ``` is better, I think? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/251/files#r21947093
Received on Wednesday, 17 December 2014 01:27:28 UTC