Re: [streams] Finalize pull/pullInto behavior (#423)

> is in the PR, but you think it is not quite right, and

Right

> is the proposed fix? Assuming that, I am still pretty confused...

Sorry for confusing. I did bad in organizing the sections. "Invocation timing and repetition" section is related to the desiredSize design discussed in the "Plan taken in the PR" section, but a separate problem from it.

Actually, https://github.com/whatwg/streams/issues/423#issuecomment-171963395 is the proposed fix. I wanted to allow the underlying byte source to probe what to do next inside pull/pullInto function without waiting for the next pull/pullInto function to be invoked. Via desiredSize accessor, the stream tells the underlying source how much data is needed. But as we introduce the BYOB reading in addition to the non-BYOB one, desiredSize is no longer enough to probe what to do next.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/423#issuecomment-172450075

Received on Monday, 18 January 2016 07:31:24 UTC