TRef

zio.stm.TRef
See theTRef companion class
object TRef

Attributes

Companion
class
Source
TRef.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TRef.type

Members list

Type members

Classlikes

object unsafe

Attributes

Source
TRef.scala
Supertypes
class Object
trait Matchable
class Any
Self type
unsafe.type

Value members

Concrete methods

def make[A](a: => A): USTM[TRef[A]]

Makes a new TRef that is initialized to the specified value.

Makes a new TRef that is initialized to the specified value.

Attributes

Source
TRef.scala
def makeCommit[A](a: => A)(implicit trace: Trace): UIO[TRef[A]]

A convenience method that makes a TRef and immediately commits the transaction to extract the value out.

A convenience method that makes a TRef and immediately commits the transaction to extract the value out.

Attributes

Source
TRef.scala

Implicits

Implicits

implicit val ordering: Ordering[TRef[_]]

Attributes

Source
TRef.scala