TQueue

final class TQueue[A]
Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def isEmpty: Txn[Boolean]

Check if currently empty.

Check if currently empty.

def peek: Txn[A]

Peek the first element. Retries if empty.

Peek the first element. Retries if empty.

def put(a: A): Txn[Unit]

Enqueue a value.

Enqueue a value.

def read: Txn[A]

Dequeue the first element. Retries if currently empty.

Dequeue the first element. Retries if currently empty.

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.

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.