TRef

zio.stm.TRef$
See theTRef companion class
object TRef

Attributes

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

Members list

Concise view

Type members

Classlikes

object unsafe

Attributes

Graph
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

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