ObservableExtensions.

RealThrottle<T>(IObservable<T>, TimeSpan, bool, bool, IScheduler) Method

Summary

Applies a throttle that will notify on either the leading and/or trailing edge.

Syntax

public static IObservable<T> RealThrottle<T>(this IObservable<T> observable, TimeSpan dueTime, bool leading = true, bool trailing = false, IScheduler scheduler = null)

Remarks

This will always emit at least once within the given window / notifier

Type Parameters

Name Description
T

Parameters

Name Type Description
observable IObservable<T>
dueTime TimeSpan
leading bool
trailing bool
scheduler IScheduler

Return Value

Type Description
IObservable<T>