TQueue

final class TQueue[A]
Companion:
object
Source:
TQueue.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

Check if currently empty.

Check if currently empty.

Source:
TQueue.scala
def peek: Txn[A]

Peek the first element. Retries if empty.

Peek the first element. Retries if empty.

Source:
TQueue.scala
def put(a: A): Txn[Unit]

Enqueue a value.

Enqueue a value.

Source:
TQueue.scala
def read: Txn[A]

Dequeue the first element. Retries if currently empty.

Dequeue the first element. Retries if currently empty.

Source:
TQueue.scala
def tryPeek: Txn[Option[A]]

Attempt to peek the first element. Returns None if empty, Some(head) otherwise.

Attempt to peek the first element. Returns None if empty, Some(head) otherwise.

Source:
TQueue.scala
def tryRead: Txn[Option[A]]

Attempt to dequeue the first element. Returns None if empty, Some(head) otherwise.

Attempt to dequeue the first element. Returns None if empty, Some(head) otherwise.

Source:
TQueue.scala