Method Add
Add(TimeSpan, Func<bool>)
Adds a timeout to the application.
object Add(TimeSpan time, Func<bool> callback)
Parameters
Returns
Remarks
When the specified time passes, the callback will be invoked. If the callback returns true, the timeout will be reset, repeating the invocation. If it returns false, the timeout will stop and be removed. The returned value is a token that can be used to stop the timeout by calling Remove(object).
Add(Timeout)
Adds a timeout to the application.
object Add(Timeout timeout)
Parameters
timeout
Timeout
Returns
Remarks
When the specified time passes, the callback will be invoked. If the callback returns true, the timeout will be reset, repeating the invocation. If it returns false, the timeout will stop and be removed. The returned value is a token that can be used to stop the timeout by calling Remove(object).