asyncMap<R> method

Stream<R> asyncMap<R>(
  1. Future<R> mapper(
    1. T
    )
)

Maps values asynchronously

Implementation

Stream<R> asyncMap<R>(Future<R> Function(T) mapper) async* {
  await for (final value in this) {
    yield await mapper(value);
  }
}