An extension to the :class that immediately queues the last received chunk to any fork.
ForkableRecallStream:class
const forkable = new ForkableRecallSink<number>()const writable = new WritableStream(forkable)await fromCollection([1, 2, 3, 4, 5, 6, 7]).pipeTo(writable) Copy
const forkable = new ForkableRecallSink<number>()const writable = new WritableStream(forkable)await fromCollection([1, 2, 3, 4, 5, 6, 7]).pipeTo(writable)
Now the stream has finished, if we fork from it we'll receive the last thing that was emitted.
await forkable.fork().pipeTo(write(console.info))// 7 Copy
await forkable.fork().pipeTo(write(console.info))// 7
Private
Optional
Protected
Generated using TypeDoc
An extension to the :class that immediately queues the last received chunk to any fork.
See
ForkableRecallStream:class
Example
Now the stream has finished, if we fork from it we'll receive the last thing that was emitted.