ZManagedFiberRefSyntax

zio.managed.`package`.ZManagedFiberRefSyntax
final implicit class ZManagedFiberRefSyntax[A](self: FiberRef[A])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def locallyManaged(value: A)(implicit trace: Trace): ZManaged[Any, Nothing, Unit]

Returns a managed effect that sets the value associated with the curent fiber to the specified value as its acquire action and restores it to its original value as its release action.

Returns a managed effect that sets the value associated with the curent fiber to the specified value as its acquire action and restores it to its original value as its release action.

Attributes