DequeueSource

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

Value members

Abstract methods

def takeBack: F[A]

Dequeues an element from the back of the dequeue, possibly semantically blocking until an element becomes available.

Dequeues an element from the back of the dequeue, possibly semantically blocking until an element becomes available.

def takeFront: F[A]

Dequeues an element from the front of the dequeue, possibly semantically blocking until an element becomes available.

Dequeues an element from the front of the dequeue, possibly semantically blocking until an element becomes available.

def tryTakeBack: F[Option[A]]

Attempts to dequeue an element from the back of the dequeue, if one is available without semantically blocking.

Attempts to dequeue an element from the back of the dequeue, if one is available without semantically blocking.

Returns

an effect that describes whether the dequeueing of an element from the dequeue succeeded without blocking, with None denoting that no element was available

def tryTakeFront: F[Option[A]]

Attempts to dequeue an element from the front of the dequeue, if one is available without semantically blocking.

Attempts to dequeue an element from the front of the dequeue, if one is available without semantically blocking.

Returns

an effect that describes whether the dequeueing of an element from the dequeue succeeded without blocking, with None denoting that no element was available

Concrete methods

override def take: F[A]

Alias for takeFront in order to implement Queue

Alias for takeFront in order to implement Queue

Definition Classes
override def tryTake: F[Option[A]]

Alias for tryTakeFront in order to implement Queue

Alias for tryTakeFront in order to implement Queue

Definition Classes

Inherited methods

def size: F[Int]
Inherited from
QueueSource