Stream asyncMapSample()

in lib/src/async_map.dart [66:72]


  Stream<S> asyncMapSample<S>(Future<S> Function(T) convert) {
    var workFinished = StreamController<void>()
      // Let the first event through.
      ..add(null);
    return aggregateSample(workFinished.stream, _dropPrevious)
        ._asyncMapThen(convert, workFinished.add);
  }