Sources
This library considers a “source” as something we can “read” from. IE, a ReadableStream
.
- CachableStream
- ControllableStream
- fromCollection
- fromDOMEvent
- fromDOMIntersections
- fromDOMMutations
- fromTimeline
- immediatelyClosingReadableStream
- interval
- merge
- race
- roundRobin
Combining implementations
You can combine a number of source implmentations by using the SourceComposite.
new ReadableStream(
new SourceComposite([
new ControllableStream(),
{ start: (controller) => controller.enqueue() },
])
)