Class SinkComposite<T>

A collection of UnderlyingSinks that implement the UnderlyingSink.

Example

stream.pipeTo(
new WritableStream(
new SinkComposite([
{ write: (chunk) => console.info(`1 ${chunk}`) },
{ write: (chunk) => console.info(`2 ${chunk}`) },
])
)
)

Type Parameters

  • T

Implements

  • UnderlyingSink<T>

Constructors

Properties

#abortableSinks: AbortableSink<T>[]
#closableSinks: ClosableSink<T>[]
#startableSinks: StartableSink<T>[]
#writableSinks: WritableSink<T>[]

Methods

Generated using TypeDoc