mapOrElseAsync<U> abstract method

Future<U> mapOrElseAsync<U>(
  1. Future<U> op(
    1. T
    ),
  2. Future<U> errOp(
    1. E
    )
)

Maps a Result<T, E> to U by applying a function to a contained Ok value, or a fallback function to a contained Err value.

Implementation

Future<U> mapOrElseAsync<U>(
  Future<U> Function(T) op,
  Future<U> Function(E) errOp,
);