Observable.ForEach<TSource> Method
Invokes an action for each element in the observable sequence, and blocks until the sequence is terminated.
Namespace: System.Reactive.Linq
Assembly: System.Reactive (in System.Reactive.dll)
public static void ForEach<TSource>( this IObservable<TSource> source, Action<TSource> onNext )
Type Parameters
- TSource
The type of source.
Parameters
- source
- Type: System.IObservable<TSource>
The source sequence.
- onNext
- Type: System.Action<TSource>
The action to invoke for each element in the observable sequence.