TEnqueue

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

A transactional queue that can only be enqueued.

Attributes

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

Members list

Value members

Abstract methods

def capacity: Int

The maximum capacity of the queue.

The maximum capacity of the queue.

Attributes

def isShutdown: USTM[Boolean]

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

def shutdown: USTM[Unit]

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

def awaitShutdown: USTM[Unit]

Waits for the hub to be shut down.

Waits for the hub to be shut down.

Attributes

def isEmpty: USTM[Boolean]

Checks if the queue is empty.

Checks if the queue is empty.

Attributes

def isFull: USTM[Boolean]

Checks if the queue is at capacity.

Checks if the queue is at capacity.

Attributes