vertx / io.vertx.kotlin.circuitbreaker / io.vertx.circuitbreaker.CircuitBreaker

Extensions for io.vertx.circuitbreaker.CircuitBreaker

executeCommandAwait

suspend fun <T> CircuitBreaker.executeCommandAwait(command: Handler<Future<T>>): T

Same as io.vertx.circuitbreaker.CircuitBreaker but using the circuit breaker default fallback.

executeCommandWithFallbackAwait

suspend fun <T> CircuitBreaker.executeCommandWithFallbackAwait(command: Handler<Future<T>>, fallback: Function<Throwable, T>): T

Same as io.vertx.circuitbreaker.CircuitBreaker but using a callback.