forEach method

  1. @override
ObservableFuture forEach(
  1. void action(
    1. T element
    )
)
override

Executes action on each element of this stream.

Completes the returned Future when all elements of this stream have been processed.

If this stream emits an error, or if the call to action throws, the returned future completes with that error, and processing stops.

Implementation

@override
ObservableFuture forEach(void Function(T element) action) =>
    _wrapFuture(_controller.stream.forEach(action));