andThen<W> method

FutureResult<W, F> andThen<W>(
  1. FutureOr<Result<W, F>> fn(
    1. S ok
    )
)

Implementation

FutureResult<W, F> andThen<W>(FutureOr<Result<W, F>> Function(S ok) fn) {
  return mapOrElse(Err.new, fn);
}