ObservableExtensions.

Debounce<T>(IObservable<T>, IObservable<Unit>, bool, bool, IScheduler) Method

Summary

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

Syntax

public static IObservable<T> Debounce<T>(this IObservable<T> observable, IObservable<Unit> notifier, bool leading = true, bool trailing = false, IScheduler scheduler = null)

Remarks

This will only emit when there have been no new events within the given window / notifier

Type Parameters

Name Description
T

Parameters

Name Type Description
observable IObservable<T>
notifier IObservable<Unit>
leading bool
trailing bool
scheduler IScheduler

Return Value

Type Description
IObservable<T>