mapAsync<R> method
Like map, for an asynchronous transform.
Implementation
Future<Result<R>> mapAsync<R>(Future<R> Function(T value) transform) async =>
switch (this) {
Ok(:final value) => Ok(await transform(value)),
Err(:final failure) => Err(failure),
};