EventThrottlerTElement, TEventArgs Constructor (ISynchronizeInvoke, Int32) |
Namespace:
SD.Tools.Algorithmia.GeneralDataStructures
Assembly:
SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.3.0 (1.3.18.0209)
Syntax public EventThrottler(
ISynchronizeInvoke synchronizingObject,
int interval
)
Public Sub New (
synchronizingObject As ISynchronizeInvoke,
interval As Integer
)
Parameters
- synchronizingObject
- Type: System.ComponentModelISynchronizeInvoke
The synchronizing object. If null, the EventThrottled event might be raised by a different thread, as the System
timer used for queue processing is using a threadpool in that case. If the handler has to run on the same thread as the UI, specify a UI object
as synchronizingObject, e.g. a form object or control object on which this throttler is used. - interval
- Type: SystemInt32
The interval, in milliseconds. If smaller than 100, it's set to 500
Remarks Uses the default comparer
See Also