TRef

object TRef
Companion:
class
class Object
trait Matchable
class Any
TRef.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.

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.