Re: [whatwg/streams] ReadableStream.from(X) (#1018)

> I just realised that
> ```js
> ReadableStream.from([in]).pipeTo(cs.writable);
> ```

That's not that far off from 
```js
new Response(in).body.pipeTo(cs.writable);
```

...exacpt that Response can't handle iterators but it can handle a lot of other things like strings, blobs, blob, typed arrays... and you can only get a byte stream back

-- 
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/1018#issuecomment-573442053

Received on Sunday, 12 January 2020 18:18:07 UTC