//arrow-fx-coroutines/arrow.fx.coroutines/CircuitBreaker/Companion

Companion

common object Companion

Functions

Name Summary
of common suspend fun of(maxFailures: Int, resetTimeoutNanos: Double, exponentialBackoffFactor: Double = 1.0, maxResetTimeout: Double = Double.POSITIVE_INFINITY, onRejected: suspend () -> Unit = { }, onClosed: suspend () -> Unit = { }, onHalfOpen: suspend () -> Unit = { }, onOpen: suspend () -> Unit = { }): CircuitBreaker
@ExperimentalTime
suspend fun of(maxFailures: Int, resetTimeout: Duration, exponentialBackoffFactor: Double = 1.0, maxResetTimeout: Duration = Duration.INFINITE, onRejected: suspend () -> Unit = suspend { }, onClosed: suspend () -> Unit = suspend { }, onHalfOpen: suspend () -> Unit = suspend { }, onOpen: suspend () -> Unit = suspend { }): CircuitBreaker
Attempts to create a CircuitBreaker.

Do you like Arrow?

Arrow Org
<