Attributes
- Companion:
- object
- Source:
- Queue.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
Members list
Value members
Abstract methods
Attributes
- Source:
- Queue.scala
Dequeues an element from the front of the queue, possibly fiber blocking until an element becomes available.
Dequeues an element from the front of the queue, possibly fiber blocking until an element becomes available.
Attributes
- Source:
- Queue.scala
Attempts to dequeue an element from the front of the queue, if one is available without fiber blocking.
Attempts to dequeue an element from the front of the queue, if one is available without fiber blocking.
Attributes
- Returns:
an effect that describes whether the dequeueing of an element from the queue succeeded without blocking, with
None
denoting that no element was available- Source:
- Queue.scala
Concrete methods
Attempts to dequeue elements from the front of the queue, if they are available without semantically blocking. This method does not guarantee any additional performance benefits beyond simply recursively calling tryTake, though some implementations will provide a more efficient implementation.
Attempts to dequeue elements from the front of the queue, if they are available without semantically blocking. This method does not guarantee any additional performance benefits beyond simply recursively calling tryTake, though some implementations will provide a more efficient implementation.
Attributes
- maxN
The max elements to dequeue. Passing
None
will try to dequeue the whole queue.- Returns:
an effect that contains the dequeued elements
- Source:
- Queue.scala