[whatwg/streams] ReadableStream.prototype.pipeline(...) (Issue #1184)

While the current `pipeTo()` and `pipeThrough()` are nice and functional, given how often we need to set up multi-step pipelines, it would be nice to have a `pipeline()` that would take multiple `TransformStream`s in a single operation...

e.g.

```js
const source = getReadableSomehow();
const transform1 = getTransform1();
const transform2 = getTransform2();
const transform3 = getTransform3();
const options = getPipeThroughOptions();

const readable = source.pipeline(transform1, transform2, transform3, options)

// Equivalent to:

const readable = source.pipeThrough(transform1, options)
                                       .pipeThrough(transform2, options)
                                       .pipeThrough(transform3, options)
```

-- 
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/1184

Received on Tuesday, 9 November 2021 19:34:36 UTC