QueueSource

trait QueueSource[F[_], A]
Companion:
object
class Object
trait Matchable
class Any
trait DequeueSource[F, A]
trait Dequeue[F, A]
class Queue[F, A]

Value members

Abstract methods

def size: F[Int]
def take: F[A]

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.

def tryTake: F[Option[A]]

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.

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