GCDTimer
Equivalent or NSTimer but using GCD queues
Install / Use
/learn @ivanzoid/GCDTimerREADME
GCDTimer
About
GCDTimer is implementation of NSTimer-like class with API close to original, but done on top of Apple's GCD (Grand Central Dispatch).
Usage
You use GCDTimer almost the same as you use NSTimer:
GCDTimer *timer;
...
timer = [GCDTimer scheduledTimerWithTimeInterval:1.0 repeats:YES block:^{
// Your repeated action here.
}];
See demo for more details (you may quickly see demo by using conventient pod try command, i.e. pod try GCDTimer)
Installation
GCDTimer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GCDTimer"
Author
Ivan Zezyulya, GCDTimer@zoid.cc
License
GCDTimer is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
