UnboundedQueueSink

cats.effect.std.unsafe.UnboundedQueueSink
See theUnboundedQueueSink companion object
trait UnboundedQueueSink[F[_], A] extends QueueSink[F, A], BoundedQueueSink[F, A]

Attributes

Companion
object
Source
UnboundedQueueSink.scala
Graph
Supertypes
trait BoundedQueueSink[F, A]
trait QueueSink[F, A]
class Object
trait Matchable
class Any
Known subtypes
trait UnboundedQueue[F, A]

Members list

Value members

Abstract methods

def unsafeOffer(a: A): Unit

Attributes

Source
UnboundedQueueSink.scala

Concrete methods

def unsafeTryOffer(a: A): Boolean

Attributes

Source
UnboundedQueueSink.scala

Inherited 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

Attributes

Inherited from:
QueueSink
Source
QueueSink.scala
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

Attributes

Returns

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

Inherited from:
QueueSink
Source
QueueSink.scala
def tryOfferN(list: List[A])(implicit F: Monad[F]): F[List[A]]

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

Attempts to enqueue the given elements at the back of the queue without semantically blocking. If an item in the list cannot be enqueued, the remaining elements will be returned. This is a convenience method that recursively runs tryOffer and does not offer any additional performance benefits.

Value parameters

list

the elements to be put at the back of the queue

Attributes

Returns

an effect that contains the remaining valus that could not be offered.

Inherited from:
QueueSink
Source
QueueSink.scala