TQueue

io.github.timwspence.cats.stm.TQueueLike.TQueue
See theTQueue companion object
final class TQueue[A]

Attributes

Companion
object
Source
TQueue.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Check if currently empty.

Check if currently empty.

Attributes

Source
TQueue.scala
def peek: Txn[A]

Peek the first element.

Peek the first element. Retries if empty.

Attributes

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

Enqueue a value.

Enqueue a value.

Attributes

Source
TQueue.scala
def read: Txn[A]

Dequeue the first element.

Dequeue the first element. Retries if currently empty.

Attributes

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

Attempt to peek the first element.

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

Attributes

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

Attempt to dequeue the first element.

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

Attributes

Source
TQueue.scala