andThenErr<W extends Object> method

FutureResult<S, W> andThenErr<W extends Object>(
  1. FutureOr<Result<S, W>> fn(
    1. F error
    )
)

Implementation

FutureResult<S, W> andThenErr<W extends Object>(
    FutureOr<Result<S, W>> Function(F error) fn) {
  return mapOrElse(fn, Ok.new);
}