vertx / io.vertx.rxjava.core / Future / recover

# recover

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

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