unwrapOrElseAsync method
Unwraps a result, yielding the content of an Ok
. If the value is an
Err
then it asynchronously calls op
with its value.
Implementation
@override
Future<T> unwrapOrElseAsync(Future<T> Function(E) op) => op(_err);
Unwraps a result, yielding the content of an Ok
. If the value is an
Err
then it asynchronously calls op
with its value.
@override
Future<T> unwrapOrElseAsync(Future<T> Function(E) op) => op(_err);