ITimeoutManager.checkTimeouts

Checks for timed out clients. For any timed out client its timeout() method is called, then it is unregistered, finally dg() is called with it as argument.

This method should be called when the timeout set by setTimeout() has expired.

If dg returns false to cancel, the clients iterated over so far are removed. To remove the remaining clients, call this method again.

interface ITimeoutManager
size_t
checkTimeouts
(
scope bool delegate dg
)

Parameters

dg bool delegate

optional callback delegate that will be called with each timed out client and must return true to continue or false to cancel.

Return Value

Type: size_t

the number of expired clients.

Meta