[streams] Do we need to pass enqueue and close as parameters to UnderlyingSource.pull? (#292)

These functions are already passed to UnderlyingSource.start.
The source can keep references to these functions and use them whenever wanted.

Is it for web developer conveniency?
If so, why not also passing the error function to pull?

Not passing them to pull would remove the need for the ReadableStream to keep a reference to these functions and let the JS engine collect these methods as needed.
This may also be more inline with how native sources pulling will be implemented.

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

Received on Wednesday, 11 March 2015 14:14:50 UTC