TQueue

object TQueue
Companion:
class
class Object
trait Matchable
class Any
TQueue.type

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.

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.

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.

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

Creates an unbounded queue.

Creates an unbounded queue.