Method Process
Process<TSource, TOther>(IObservable<TSource>, IObservable<TOther>)
Samples elements from the first sequence whenever the second sequence emits a notification.
public IObservable<TSource> Process<TSource, TOther>(IObservable<TSource> source, IObservable<TOther> other)
Parameters
source
IObservable<TSource>The source sequence to sample.
other
IObservable<TOther>The sequence of sampling notifications.
Returns
- IObservable<TSource>
The sampled observable sequence.
Type Parameters
TSource
The type of the elements in the
source
sequence.TOther
The type of the elements in the
other
sequence.
Remarks
Upon each sampling notification, the latest element (if any) emitted by
the source
sequence during the last sampling interval
is sent to the resulting sequence.