AsyncResult.otherwise

Map the failure of this async result to a specific {@code value}.<p>

When this async result fails, this {@code value} will succeeed the async result returned by this method call.<p>

When this async succeeds, the result will be propagated to the returned async result.

@param value the value that eventually completes the mapped async result @return the mapped async result

  1. AsyncResult!(T) otherwise(Function!(Throwable, T) mapper)
  2. AsyncResult!(T) otherwise(T value)
    interface AsyncResult(T)
    final
    otherwise
    ()

Meta