ScopedRef

zio.ScopedRef$
See theScopedRef companion trait
object ScopedRef

Attributes

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

Members list

Concise view

Value members

Concrete methods

def fromAcquire[R, E, A](acquire: ZIO[R, E, A])(implicit trace: Trace): ZIO[R & Scope, E, ScopedRef[A]]

Creates a new ScopedRef from an effect that resourcefully produces a value.

Creates a new ScopedRef from an effect that resourcefully produces a value.

Attributes

def make[A](a: => A): ZIO[Scope, Nothing, ScopedRef[A]]

Creates a new ScopedRef from the specified value. This method should not be used for values whose creation require the acquisition of resources.

Creates a new ScopedRef from the specified value. This method should not be used for values whose creation require the acquisition of resources.

Attributes