TimeoutManagerBase.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.

  1. size_t checkTimeouts(bool delegate(ITimeoutClient client) dg)
    class TimeoutManagerBase
    size_t
    checkTimeouts
    (
    scope bool delegate dg = null
    )
  2. size_t checkTimeouts(ulong now, bool delegate(ITimeoutClient client) 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