Companion
object Companion
Functions
Link copied to clipboard
operator fun invoke(resetTimeout: Duration, openingStrategy: CircuitBreaker.OpeningStrategy, exponentialBackoffFactor: Double = 1.0, maxResetTimeout: Duration = Duration.INFINITE, timeSource: TimeSource = TimeSource.Monotonic, onRejected: suspend () -> Unit = suspend { }, onClosed: suspend () -> Unit = suspend { }, onHalfOpen: suspend () -> Unit = suspend { }, onOpen: suspend () -> Unit = suspend { }): CircuitBreaker
Attempts to create a CircuitBreaker.