DISPATCH_QUEUE_T in Swift 3
10,275
You need to use DispatchQueue
instead, libdispatch was modernised to match the swift 3 syntax, see the proposal SE-0088
Author by
Thomas Delputte
Updated on June 16, 2022Comments
-
Thomas Delputte almost 2 years
I'm programming my first Swift 3 but I came across the following error
dispatch_queue_t is unavailable in swift.
var queue: dispatch_queue_t? var debugPrint = false public init() { let uuid = NSUUID().uuidString let queueLabel = "tomlogger-queue-" + uuid queue = dispatch_queue_create(queueLabel, DISPATCH_QUEUE_SERIAL) }
Does anyone know how I solve this error,
Thomas