FMBaseTimeoutTimer Class Reference

Inherits from NSObject
Declared in FM.h

Overview

Contract for a thread-safe class for running timeouts on asynchronous methods.

– startWithTimeout:

Starts the timer.

- (void)startWithTimeout:(int)timeout

Parameters

name="timeout">The

timeout length, in milliseconds.

Discussion

Starts the timer.

Declared In

FM.h

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

- (bool)stop

Discussion

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.

Declared In

FM.h