Method RemoveTimeout
RemoveTimeout(object)
Cancels all timeout occurrences associated with a previously returned token.
bool RemoveTimeout(object token)
Parameters
tokenobjectThe token returned by AddTimeout(TimeSpan, Func<bool>).
Returns
- bool
true if at least one queued occurrence was removed or a cancellation request was recorded for at least one active occurrence; otherwise, false.
Remarks
A matching callback that is already executing is not interrupted, but it will not be rescheduled if it returns true.