XTimer icon indicating copy to clipboard operation
XTimer copied to clipboard

It solves the problem that NSTimer needs to add and open runLoop manually in sub-threads, and will cause memory leak.

XTimer

CI Status Version License Platform

Description

XTimer uses GCD Source to solve the possible problems in NSTimer. It also realizes the functions of timer pause and restart.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

XTimer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'XTimer'

Author

StrongX, [email protected]

License

XTimer is available under the MIT license. See the LICENSE file for more info.