- From: Takeshi Yoshino <notifications@github.com>
- Date: Fri, 06 Feb 2015 01:29:49 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Friday, 6 February 2015 09:30:16 UTC
> export function CloseReadableStream(stream) { > - stream._state = 'closed'; > + if (stream._readableStreamReader !== undefined) { > + if (stream._state === 'waiting') { > + stream._readableStreamReader._resolveReadyPromise(undefined); > + } > + > + // rs.ready() was pending because there was a reader. > + stream._resolveReadyPromise(undefined); Thanks. Done. And this revealed one bug in `releaseLock()` that is calling _resolveReadyPromise() only when the state is `"readable"`. Fixed. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/277/files#r24230097
Received on Friday, 6 February 2015 09:30:16 UTC