[categories] [index] [all (552)] [latest]
let myConcurrentQueue = dispatch_queue_create("myConcurrentQueue", DISPATCH_QUEUE_CONCURRENT)
let group = dispatch_group_create()
dispatch_group_notify(group, dispatch_get_main_queue()) {
print("done")
}
for i in 0..<5 {
dispatch_group_async(group, myConcurrentQueue) {
print(i, NSThread.currentThread())
}
}