vertx / io.vertx.reactivex.core / CompositeFuture / recover

# recover

`open fun recover(mapper: Function<Throwable, Future<CompositeFuture>>): Future<CompositeFuture>`

Handles a failure of this Future by returning the result of another Future. If the mapper fails, then the returned future will be failed with this failure.

### Parameters

`mapper` - A function which takes the exception of a failure and returns a new future.

Return
A recovered future