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

# 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.

### Parameters

`command` - the operation

`fallback` - the fallback

`handler` - the completion handler receiving either the operation result or the fallback result. The parameter is an because if the fallback is not called, the error is passed to the handler.