mapAsync<U extends Object> method

  1. @override
Future<Result<U, E>> mapAsync<U extends Object>(
  1. Future<U> op(
    1. T
    )
)
override

Maps a Result<T, E> to Result<U, E> by applying an asynchronous function to a contained Ok value, leaving an Err value untouched.

Implementation

@override
Future<Result<U, E>> mapAsync<U extends Object>(
  Future<U> Function(T) op,
) =>
    Future.value(Err(_err));