Policy

trait Policy[-E]

Represents a composition of one or more rezilience policies

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply[R, E1 <: E, A](f: ZIO[R, E1, A]): ZIO[R, PolicyError[E1], A]

Concrete methods

def compose[E2 <: E](that: Policy[PolicyError[E2]]): Policy[E2]

Apply another policy on top of this one

Apply another policy on top of this one

The other policy gets applied before this policy, i.e. policyA compose policyB means policyB { policyA { effect } }

Value parameters:
that

The other policy