Nonblocking, concurrent, asynchronous queue.
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Signals that queue size became less than maxSize.
Signals that queue size became less than maxSize.
Attributes
- Example:
def aux(): F[Unit] = queue.offer(o).flatMap { case false => queue.canOffer *> aux() case true => Effect[F].unit } aux()
Resolves only if stream.cancel
ran.
Resolves only if stream.cancel
ran.
Attributes
Immediately stop offering and pulling items from the queue.
Immediately stop offering and pulling items from the queue.
Attributes
Enqueue item. If maxSize reached waits until queue will decrease.
Enqueue item. If maxSize reached waits until queue will decrease.
Attributes
Offers item
to the queue.
Offers item
to the queue.
Attributes
- Returns:
true is ok and false if maxSize reached or queue is stopped.
Returns the size of the queue. This property takes into account canOfferCallbacks and pullCallbacks to determine the real size of the queue after all of them are resolved.
Returns the size of the queue. This property takes into account canOfferCallbacks and pullCallbacks to determine the real size of the queue after all of them are resolved.
Attributes
Disallow to offer new items. Stream ends with last item.
Disallow to offer new items. Stream ends with last item.