recover<R extends Object> abstract method

Result<S, R> recover<R extends Object>(
  1. Result<S, R> onFailure(
    1. F failure
    )
)

Returns the encapsulated Result of the given transform function applied to the encapsulated a Failure or the original encapsulated value if it is success.

Implementation

Result<S, R> recover<R extends Object>(
  Result<S, R> Function(F failure) onFailure,
);