Companion

object Companion

Functions

Link copied to clipboard
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
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.