Creates an async iterable queue that can be used to push and consume values.
The queue provides methods to push values, seal the queue, close the queue, and fork it into multiple sub-queues.
The optional QueueConfig object allows registering callbacks for specific events, such as sealing, closing, or the iterator finishing execution.
Returns
An async iterable queue with additional methods to control the queue state and fork it into sub-queues.
Creates an async iterable queue that can be used to push and consume values. The queue provides methods to push values, seal the queue, close the queue, and fork it into multiple sub-queues. The optional
QueueConfig
object allows registering callbacks for specific events, such as sealing, closing, or the iterator finishing execution.Returns
An async iterable queue with additional methods to control the queue state and fork it into sub-queues.
Example