foldAsync<U extends Object, F extends Object> abstract method
Asynchronously invoke either the ok
or the err
function based on
the result.
Implementation
Future<Result<U, F>> foldAsync<U extends Object, F extends Object>(
Future<U> Function(T) ok,
Future<F> Function(E) err,
);