whatwg/streams — pull request #31 by Raynos (2013-11-05 03:04:58+00:00)
Title: `open` should complete before `read` is called

Most pull sources that have an `open` logic which fails if you read from them before open is finished.

This means the `start` and `pull` functions need to co-ordinate the `[[pulling]]` state somehow. And `start` needs to set `[[pulling]]` to false somehow.

An empty call to `push()` might be used to set `[[pulling]]` to false.