DebounceDispatcher.Throttle

This method throttles events by allowing only 1 event to fire for the given timeout period. Only the last event fired is handled - all others are ignored. Throttle will fire events every timeout ms even if additional events are pending.

Use Throttle where you need to ensure that events fire at given intervals.

public void Throttle(int interval,
	Action<Object> action,
	object param,
	DispatcherPriority priority,
	Dispatcher disp)

Parameters

interval
Timeout in Milliseconds

action
Action to fire when debounced event fires

param
optional parameter

priority
optional priorty for the dispatcher

disp
optional dispatcher. If not passed or null CurrentDispatcher is used.


See also:

Class DebounceDispatcher

© West Wind Technologies, 2016-2023 • Updated: 11/23/21
Comment or report problem with topic