Dequeue

object Dequeue
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def bounded[F[_], A](capacity: Int)(implicit F: GenConcurrent[F, _]): F[Dequeue[F, A]]

Constructs an empty, bounded dequeue holding up to capacity elements for F data types that are cats.effect.kernel.GenConcurrent. When the queue is full (contains exactly capacity elements), every next Queue#offer will be backpressured (i.e. the Queue#offer blocks semantically).

Constructs an empty, bounded dequeue holding up to capacity elements for F data types that are cats.effect.kernel.GenConcurrent. When the queue is full (contains exactly capacity elements), every next Queue#offer will be backpressured (i.e. the Queue#offer blocks semantically).

Value Params
capacity

the maximum capacity of the queue

Returns

an empty, bounded queue

def unbounded[F[_], A](implicit F: GenConcurrent[F, _]): F[Dequeue[F, A]]

Constructs an empty, unbounded dequeue for F data types that are cats.effect.kernel.GenConcurrent. Queue#offer never blocks semantically, as there is always spare capacity in the queue.

Constructs an empty, unbounded dequeue for F data types that are cats.effect.kernel.GenConcurrent. Queue#offer never blocks semantically, as there is always spare capacity in the queue.

Returns

an empty, unbounded queue

Implicits

Implicits

implicit def catsInvariantForDequeue[F[_]](implicit evidence$1: Functor[F]): Invariant[[_] =>> Dequeue[F, _$7]]