- From: Domenic Denicola <notifications@github.com>
 - Date: Wed, 02 Sep 2015 15:20:15 -0700
 - To: whatwg/streams <streams@noreply.github.com>
 
Received on Wednesday, 2 September 2015 22:20:48 UTC
As an alternative to the read loop, you can do e.g.
```js
readableStream.pipeTo(new WritableStream({
    write(chunk) {
      console.log(value);
    },
    close() {
      console.log("--- all done");
    }
    abort(e) {
      console.log("--- error in the readable stream", e);
    }
  });
```
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/393
Received on Wednesday, 2 September 2015 22:20:48 UTC