Halt consumers of this Queue immediately, ignoring any
unconsumed queued elements.
Halt consumers of this Queue, after allowing any unconsumed
queued elements to be processed first.
Halt consumers of this Queue, after allowing any unconsumed
queued elements to be processed first. For immediate
cancellation, ignoring any unconsumed elements, use cancel.
Asynchronous trigger failure of this Queue.
Asynchronously dequeue the next element from this Queue.
Asynchronously dequeue the next element from this Queue.
If no elements are currently available, the given callback
will be invoked later, when an element does become available,
or if an error occurs.
Add an element to this Queue in FIFO order, and update the
size.
Return the current number of unconsumed queued elements.
Return the current number of unconsumed queued elements. Guaranteed to take constant time, but may be immediately out of date.
Convert to a Sink[Task, A].
Convert to a Sink[Task, A]. The cleanup action will be
run when the Sink is terminated.