executeOrFallback

suspend fun <T> executeOrFallback(fallback: suspend () -> T, block: suspend () -> T): T(source)

Executes an operation with a fallback if the bulkhead is full or times out.

Return

the result of the operation or fallback

Parameters

fallback

the fallback function to call if rejected

block

the primary operation to execute