Popularity
2.3
Growing
Activity
0.0
Stable
72
6
15
Code Quality Rank:
L5
Programming language: Swift
License: MIT License
Tags:
Thread
Latest version: v0.2.1
GCD alternatives and similar libraries
Based on the "Thread" category.
Alternatively, view GCD alternatives based on common mentions on social networks and blogs.
-
Async.legacy
Syntactic sugar in Swift for asynchronous dispatches in Grand Central Dispatch (iOS7+ and OS X 10.9+ compatible) -
EKI
DISCONTINUED. Make Grand Central Dispatch easy and fun to use (queue, task, group, timer and semaphore). -
AsyncTimer
DISCONTINUED. AsyncTimer is a precision asynchronous timer. You can also use it as a countdown timer
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of GCD or a related project?
Popular Comparisons
README
GCD
A wrapper of Grand Central Dispatch written in Swift.
Examples
gcd
// submit your code for asynchronous execution on a global queue with high priority
gcd.async(.High) {
// your code
}
// or with main thread
gcd.async(.Main) {
// your code
}
gcd.async(.Default) {
// your code
gcd.async(.Main) {
// code run on main thread
}
}
// with your custom queue
let myQueue = GCDQueue(serial: "myQueue")
gcd.async(.Custom(myQueue)) {
// your code
}
// run with delay
gcd.async(.Background, delay: 5.0) {
// your code
}
// sync code
gcd.sync(.Main) {
// your code
}
// apply
gcd.apply(.Default, 10) { index in
// your code
}
// once
var onceToken: GCDOnce = 0
gcd.once(&onceToken) {
// your code
}
manage group of block with GCDGroup
// create group
let group = GCDGroup()
// you can add async code to group
group.async(.Defaul) {
// your code
}
// you can set notify for this group
group.notify(.Main) {
// your code
}
// or wait synchronously for block in group to complete and timeout is 10 seconds
group.wait(10)
create your custom queue with CGDQueue
// create a serial queue
let serialQueue = GCDQueue(serial: "mySerialQueue")
// create a concurrent queue
let concurrentQueue = GCDQueue(concurrent: "myConcurrentQueue")
// you can submit async barrier to queue
myQueue.asyncBarrier {
// your code
}
// or sync code
myQueue.syncBarrier {
// your code
}
Installation
Installation with CocoaPods
pod 'GCD'
Copying all the files into your project
Using submodule