[whatwg/streams] Using streams from other specs: you can't really use "create" (#1084)

The algorithm for other specs to [create](https://streams.spec.whatwg.org/#readablestream-create) a readable stream isn't really usable, at least for the case of a readable stream with a pull underlying source.

In particular, you need to pass a _pullAlgorithm_. But that _pullAlgorithm_ will need to [enqueue](https://streams.spec.whatwg.org/#readablestream-enqueue), close, etc. the stream. But the stream hasn't been created yet!

I'm not sure what the right fix is here. People can work around it using Web IDL's "new" + our [set up](https://streams.spec.whatwg.org/#readablestream-set-up), but that kind of sucks.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1084

Received on Friday, 13 November 2020 21:11:18 UTC