Sources

This library considers a “source” as something we can “read” from. IE, a ReadableStream.

Combining implementations

You can combine a number of source implmentations by using the SourceComposite.

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