DequeueSink

trait DequeueSink[F[_], A] extends QueueSink[F, A]
Companion
object
trait QueueSink[F, A]
class Object
trait Matchable
class Any
trait Dequeue[F, A]

Value members

Abstract methods

def offerBack(a: A): F[Unit]

Enqueues the given element at the back of the dequeue, possibly semantically blocking until sufficient capacity becomes available.

Enqueues the given element at the back of the dequeue, possibly semantically blocking until sufficient capacity becomes available.

Value Params
a

the element to be put at the back of the dequeue

def offerFront(a: A): F[Unit]

Enqueues the given element at the front of the dequeue, possibly semantically blocking until sufficient capacity becomes available.

Enqueues the given element at the front of the dequeue, possibly semantically blocking until sufficient capacity becomes available.

Value Params
a

the element to be put at the back of the dequeue

def tryOfferBack(a: A): F[Boolean]

Attempts to enqueue the given element at the back of the dequeue without semantically blocking.

Attempts to enqueue the given element at the back of the dequeue without semantically blocking.

Value Params
a

the element to be put at the back of the dequeue

Returns

an effect that describes whether the enqueuing of the given element succeeded without blocking

def tryOfferFront(a: A): F[Boolean]

Attempts to enqueue the given element at the front of the dequeue without semantically blocking.

Attempts to enqueue the given element at the front of the dequeue without semantically blocking.

Value Params
a

the element to be put at the back of the dequeue

Returns

an effect that describes whether the enqueuing of the given element succeeded without blocking

Concrete methods

override def offer(a: A): F[Unit]

Alias for offerBack in order to implement Queue

Alias for offerBack in order to implement Queue

Definition Classes
override def tryOffer(a: A): F[Boolean]

Alias for tryOfferBack in order to implement Queue

Alias for tryOfferBack in order to implement Queue

Definition Classes