Method CheckTimers
CheckTimers(out int)
Determines whether any timeout is queued and calculates how long the caller may wait before the earliest one is due.
public bool CheckTimers(out int waitTimeout)
Parameters
waitTimeoutintThe number of milliseconds until the earliest queued timeout is due,
0if one is already due, or-1if no timeout is queued.-1indicates the caller may wait indefinitely.
Returns
Remarks
A timeout whose callback is currently executing has been dequeued and is therefore not counted.