dispatch-after Questions
8
Solved
In earlier versions of Swift, one could create a delay with the following code:
let time = dispatch_time(dispatch_time_t(DISPATCH_TIME_NOW), 4 * Int64(NSEC_PER_SEC))
dispatch_after(time, dispatch_...
Ashurbanipal asked 25/6, 2016 at 17:30
15
Solved
In Swift 2, I was able to create queue with the following code:
let concurrentQueue = dispatch_queue_create("com.swift3.imageQueue", DISPATCH_QUEUE_CONCURRENT)
But this doesn't compile in Swift ...
Salamone asked 14/6, 2016 at 7:41
1
© 2022 - 2024 — McMap. All rights reserved.