Skip to content

,System.TimeSpan)} ,System.TimeSpan,System.Reactive.Concurrency.IScheduler)}

ReactiveExtensions.ThrottleDistinct(IObservable, TimeSpan) method

Defined in

Type: ReactiveExtensions Namespace: ReactiveUI.Extensions Assembly: ReactiveUI.Extensions.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Overloads

  • 1. public static IObservable<T> ThrottleDistinct<T>(this IObservable<T> source, TimeSpan throttle)
  • 2. public static IObservable<T> ThrottleDistinct<T>(this IObservable<T> source, TimeSpan throttle, IScheduler scheduler)

1. Overload

public static IObservable<T> ThrottleDistinct<T>(this IObservable<T> source, TimeSpan throttle)

View source

Summary: Throttle but only emit when the value actually changes.

Type parameters

NameDescription
TElement type.

Parameters

NameTypeDescription
sourceIObservableThe source.
throttleTimeSpanThe throttle.

Returns: IObservable -- A throttled distinct sequence.

2. Overload

public static IObservable<T> ThrottleDistinct<T>(this IObservable<T> source, TimeSpan throttle, IScheduler scheduler)

View source

Summary: Throttle but only emit when the value actually changes.

Type parameters

NameDescription
TElement type.

Parameters

NameTypeDescription
sourceIObservableThe source.
throttleTimeSpanThe throttle.
scheduler[IScheduler](#The scheduler.

Returns: IObservable -- A throttled distinct sequence.