ScopedRef

object ScopedRef
Companion:
class
class Object
trait Matchable
class Any

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.

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.