<FMLiveSwitchITimeoutTimer> Protocol Reference

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

Detailed Description

A thread-safe class for running timeouts on asynchronous methods.

Method Documentation

◆ startWithTimeout:

- (void) startWithTimeout: (int)  timeout

Starts the timer.

Parameters
timeoutThe timeout length, in milliseconds.

◆ stop

- (bool) stop

Stops the timer, notifying the calling code if the timeout has already elapsed.

Returns
true if the timer was successfully stopped in time; false if the timeout elapsed and the timeout callback has been invoked.