mapAsync<T> method

AsyncEither<L, T> mapAsync<T>(
  1. FutureOr<T> f(
    1. R
    )
)

Implementation

AsyncEither<L, T> mapAsync<T>(FutureOr<T> Function(R) f) => fold(
      (e) async => Either.left(e),
      (r) async => Either.right(await f(r)),
    );