toFutureResult method
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());
}
Turns a Result of a Future into a FutureResult.
FutureResult<S, F> toFutureResult() async {
if (isErr()) {
return (this as Err<Future<S>, F>).into();
}
return Ok(await unwrap());
}