QueueSink

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

Value members

Abstract methods

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

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

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

Value parameters:
a

the element to be put at the back of the queue

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

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

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

Value parameters:
a

the element to be put at the back of the queue

Returns:

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