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
Attempts to dequeue elements from the front of the queue, if they are available without semantically blocking.
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.
Value parameters
maxN
The max elements to dequeue. Passing None will try to dequeue the whole queue.