Click or drag to resize
CallLimiterCall Method (Action, Double)
Calls the specified to call after intervalMS milliseconds, unless a call is already in progress, in which case the call is ignored. It doesn't matter if this method was called previously with a different toCall value.

Namespace:  SD.Tools.Algorithmia.GeneralDataStructures
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.2.0.0 (1.2.16.0406)
Syntax
public bool Call(
	Action toCall,
	double intervalMS
)

Parameters

toCall
Type: SystemAction
The func to call.
intervalMS
Type: SystemDouble
The interval to wait, in ms, before toCall is called. If interval is below 100, it's clamped to 100.

Return Value

Type: Boolean
true if the call is accepted and will be performed in intervalMS ms. False if the call is ignored if a timer is already in progress.
Remarks
Calls to toCall will be made on a threadpool thread
See Also