ITimeoutManager

Members

Functions

checkTimeouts
size_t checkTimeouts(bool delegate(ITimeoutClient client) dg)

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.

getRegistration
IExpiryRegistration getRegistration(ITimeoutClient client)

Registers client with the timeout manager and returns the expiry registration object which the registered client is associated to.

next_expiration_us
ulong next_expiration_us()

Tells the wall clock time time when the next client will expire.

us_left
ulong us_left()

Tells the time until the next client will expire.

Meta