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, 2019 • Updated: 01/06/19
Comment or report problem with topic