execute Or Fallback
suspend fun <T> executeOrFallback(fallback: suspend (CircuitBreakerOpenException) -> T, block: suspend () -> T): T(source)
Executes an operation with a fallback if the circuit is open.
Return
The result of the operation or fallback
Parameters
fallback
The fallback function to call if circuit is open
block
The primary operation to execute