ScopedRef

zio.ScopedRef
See theScopedRef companion trait
object ScopedRef

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
ScopedRef.type

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

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