TQueue

zio.stm.TQueue$
See theTQueue companion trait
object TQueue

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TQueue.type

Members list

Concise view

Value members

Concrete methods

def bounded[A](requestedCapacity: => Int): USTM[TQueue[A]]

Creates a bounded queue with the back pressure strategy. The queue will retain values until they have been taken, applying back pressure to offerors if the queue is at capacity.

Creates a bounded queue with the back pressure strategy. The queue will retain values until they have been taken, applying back pressure to offerors if the queue is at capacity.

For best performance use capacities that are powers of two.

Attributes

def dropping[A](requestedCapacity: => Int): USTM[TQueue[A]]

Creates a bounded queue with the dropping strategy. The queue will drop new values if the queue is at capacity.

Creates a bounded queue with the dropping strategy. The queue will drop new values if the queue is at capacity.

For best performance use capacities that are powers of two.

Attributes

def sliding[A](requestedCapacity: => Int): USTM[TQueue[A]]

Creates a bounded queue with the sliding strategy. The queue will add new values and drop old values if the queue is at capacity.

Creates a bounded queue with the sliding strategy. The queue will add new values and drop old values if the queue is at capacity.

For best performance use capacities that are powers of two.

Attributes

def unbounded[A]: USTM[TQueue[A]]

Creates an unbounded queue.

Creates an unbounded queue.

Attributes