toFutureResult method

FutureResult<S, F> toFutureResult()

Turns a Result of a Future into a FutureResult.

Implementation

FutureResult<S, F> toFutureResult() async {
  if (isErr()) {
    return (this as Err<Future<S>, F>).into();
  }
  return Ok(await unwrap());
}