-
Notifications
You must be signed in to change notification settings - Fork 34
Converting to ReadableStream #157
Comments
Streams aren’t part of the language, and node and browsers have different stream approaches. I’m not sure how this proposal could (or should) specify either? |
See previous discussion of other Regarding the concrete suggestion here:
Note that this proposal is for iterator helpers, not iterable helpers. So even if there were a Anyway, |
Note that Node.js intends to implement this proposal on its streams (so you won't have to go through iterators every time + it lets us support concurrency and cancellation. You will be able to use the Node.js helpers to convert an iterable to a web readable stream. |
I will close this a there doesn't appear to be something actionable, if there are other adjustments to readable streams, it might be a good idea to look at the whatwg repos. Thanks for raising it! |
I have heard the proposal of
ReadableStream.from(iterable)
But there is also things like
blob.stream()
that returns aRedableStream
So my idea where just to have a similar method on the prototype to do kind of the same thing as
Blob.stream()
in a way that you can do:This could work for both sync and async iterators.
Note this is just a alternative proposal if we don't get
ReadableStream.from(iterable)
or we could have both, but it would seem unnecessary?
The text was updated successfully, but these errors were encountered: