arrow-fx-coroutines / arrow.fx.coroutines / CircuitBreaker / protectOrThrow

protectOrThrow

tailrec suspend fun <A> protectOrThrow(fa: suspend () -> A): A

Returns a new task that upon execution will execute the given task, but with the protection of this circuit breaker. If an exception in fa occurs it will be rethrown

Do you like Arrow?

Arrow Org
<