DispatchKit能迅速简化中央调度。
创建和初始化队列:
let mainQueue: GCDQueue = .Mainlet defaultQueue: GCDQueue = .Defaultlet customSerialQueue: GCDQueue = .createSerial("mySerialQueue")let customConcurrentQueue: GCDQueue = .createConcurrent("myConcurrentQueue")
DispatchKit能迅速简化中央调度。
创建和初始化队列:
let mainQueue: GCDQueue = .Mainlet defaultQueue: GCDQueue = .Defaultlet customSerialQueue: GCDQueue = .createSerial("mySerialQueue")let customConcurrentQueue: GCDQueue = .createConcurrent("myConcurrentQueue")
评论