Re: [whatwg/streams] ReadableStream.from(asyncIterable) (#1083)

Hmm, I haven't thought about the tradeoffs in depth yet, but disallowing infinite sync iterables would preclude this from working:

```js
ReadableStream.from(Number.range(0, Infinity));
```

using https://github.com/tc39/proposal-Number.range

We could have separate from() and fromSync() methods? It's a bit more justifiable since the behavior is so different.

-- 
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/pull/1083#issuecomment-881086140

Received on Friday, 16 July 2021 00:09:47 UTC