Re: [streams] Convert readable stream pull() to promise-returning (#272)

580327931c95c50adbdfaaaffdf53064ee486b2d looks good.

Please think of this scenario:

1. `rs.read()` is called
1. `pull()` is called to refill the queue
1. `pull()` called `enqueue()` to fill up the queue and returned
1. `rs.read()` is called
1. `rs.read()` is called
1. `rs.read()` is called ...

Even if the `read()` calls drain the queue, `pull()` won't be called until the next microtask is run. Are you aware of this? I'm fine with this but want to confirm.



---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/272#issuecomment-73032234

Received on Thursday, 5 February 2015 11:30:58 UTC