Re: [streams] [Reader] Should resolve readyPromise on getReader() call? (#258)

> 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