Class SourceComposite<T>

A collection of UnderlyingSources that implement the UnderlyingSource.

Example

new ReadableStream(
new SourceComposite([
{ start: (controller) => controller.enqueue('Hello') },
{ start: (controller) => controller.enqueue('World') },
])
)

Type Parameters

  • T

Implements

  • UnderlyingDefaultSource<T>

Constructors

Properties

#cancellableSources: CancellableSource<T>[]
#pullableSources: PullableSource<T>[]
#startableSources: StartableSource<T>[]

Methods

Generated using TypeDoc