A non-currying variant of withCallbackAdapter. Creates an async iterable queue that is populated with values from a provided factory function without requiring an input object. The factory function is passed a CallbackAdapterContext object, which contains methods to pass values to the queue and mark the end of the iterable.
The optional cleanup function can be used to perform cleanup operations when the queue is sealed.
Returns
An IterableQueue populated with values from the provided factory function.
A non-currying variant of withCallbackAdapter. Creates an async iterable queue that is populated with values from a provided factory function without requiring an input object. The factory function is passed a CallbackAdapterContext object, which contains methods to pass values to the queue and mark the end of the iterable. The optional cleanup function can be used to perform cleanup operations when the queue is sealed.
Returns
An IterableQueue populated with values from the provided factory function.
Example