TEnqueue

zio.stm.TEnqueue
trait TEnqueue[-A] extends Serializable

A transactional queue that can only be enqueued.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class THub[A]
trait TQueue[A]

Members list

Concise view

Value members

Abstract methods

The maximum capacity of the queue.

The maximum capacity of the queue.

Attributes

Checks whether the queue is shut down.

Checks whether the queue is shut down.

Attributes

def offer(a: A): ZSTM[Any, Nothing, Boolean]

Offers a value to the queue, returning whether the value was offered to the queue.

Offers a value to the queue, returning whether the value was offered to the queue.

Attributes

def offerAll(as: Iterable[A]): ZSTM[Any, Nothing, Boolean]

Offers all of the specified values to the queue, returning whether they were offered to the queue.

Offers all of the specified values to the queue, returning whether they were offered to the queue.

Attributes

Shuts down the queue.

Shuts down the queue.

Attributes

def size: USTM[Int]

The current number of values in the queue.

The current number of values in the queue.

Attributes

Concrete methods

Waits for the hub to be shut down.

Waits for the hub to be shut down.

Attributes

Checks if the queue is empty.

Checks if the queue is empty.

Attributes

Checks if the queue is at capacity.

Checks if the queue is at capacity.

Attributes