FiberRefModificationR

oxygen.zio.FiberRefModificationR
See theFiberRefModificationR companion object
trait FiberRefModificationR[-_R] extends ZIOAspectAtLeastR[_R]

Attributes

Companion
object
Experimental
true
Graph
Supertypes
trait ZIOAspect[Nothing, _R, Nothing, Any, Nothing, Any]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

override def apply[R <: _R, E, A](effect: ZIO[R, E, A])(implicit trace: Trace): ZIO[R, E, A]

Runs the specified effect using FiberRef.locally/FiberRef.locallyWith

Runs the specified effect using FiberRef.locally/FiberRef.locallyWith

Attributes

Definition Classes
ZIOAspect
def set: URIO[_R, Unit]

Updates the FiberRef using FiberRef.set/FiberRef.update, with no expectation of it being set back.

Updates the FiberRef using FiberRef.set/FiberRef.update, with no expectation of it being set back.

Attributes

def setScoped: URIO[_R & Scope, Unit]

Updates the FiberRef using FiberRef.locallyScoped/FiberRef.locallyScopedWith, where it will be set back when the scope is closed.

Updates the FiberRef using FiberRef.locallyScoped/FiberRef.locallyScopedWith, where it will be set back when the scope is closed.

Attributes

Concrete methods

final def >>>[R2](that: FiberRefModificationR[R2]): FiberRefModificationR[_R & R2]
final def toLayer: URLayer[_R, Unit]

Inherited methods

def >>>[LowerR1, UpperR1 <: _R, LowerE1, UpperE1, LowerA1, UpperA1](that: ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]): ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]

Attributes

Inherited from:
ZIOAspect
def @@[LowerR1, UpperR1 <: _R, LowerE1, UpperE1, LowerA1, UpperA1](that: ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]): ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]

Returns a new aspect that represents the sequential composition of this aspect with the specified one.

Returns a new aspect that represents the sequential composition of this aspect with the specified one.

Attributes

Inherited from:
ZIOAspect
def andThen[LowerR1, UpperR1 <: _R, LowerE1, UpperE1, LowerA1, UpperA1](that: ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]): ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]

Attributes

Inherited from:
ZIOAspect
def flip: ZIOAspect[Nothing, _R, Nothing, Any, Nothing, Any]

Returns a new aspect that flips the behavior it applies to error and success channels. If the old aspect affected success values in some way, then the new aspect will affect error values in the same way.

Returns a new aspect that flips the behavior it applies to error and success channels. If the old aspect affected success values in some way, then the new aspect will affect error values in the same way.

Attributes

Inherited from:
ZIOAspect