- From: Yutaka Hirano <notifications@github.com>
- Date: Mon, 05 Jan 2015 21:40:14 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Tuesday, 6 January 2015 05:40:40 UTC
> Right now the contract for ready is that it only fulfills if the state is no longer "waiting". I would prefer to keep that contract if possible. So I don't think resolving it on the getReader() call is very good. IIUC we already have waiting => waiting transition. ``` var stream = ...; var reader = stream.getReader(); stream.ready.then(() => console.log('state becomes ' + stream.state)); reader.releaseLock(); ``` The above code prints 'state becomes waiting', right? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/258#issuecomment-68828539
Received on Tuesday, 6 January 2015 05:40:40 UTC