A thread-safe class for running timeouts on asynchronous methods. More...
Instance Methods | |
| (void) | - startWithTimeout: | 
| Starts the timer.  More... | |
| (bool) | - stop | 
| Stops the timer, notifying the calling code if the timeout has already elapsed.  More... | |
A thread-safe class for running timeouts on asynchronous methods.
| - (void) startWithTimeout: | (int) | timeout | 
Starts the timer.
| timeout | The timeout length, in milliseconds. | 
| - (bool) stop | 
Stops the timer, notifying the calling code if the timeout has already elapsed.
true if the timer was successfully stopped in time; false if the timeout elapsed and the timeout callback has been invoked.