[swift-users] QualityOfService for concurrentPerform in Swift 3

Gerriet M. Denkmann g at mdenkmann.de
Sun Sep 25 07:19:33 CDT 2016


In ObjC:

dispatch_queue_t queue = dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_HIGH, 0 );		
dispatch_apply( nbrThreads, queue, ^void(size_t idx) …

In Swift 3:
DispatchQueue.concurrentPerform( iterations: nbrThreads) …

How can one specify the DISPATCH_QUEUE_PRIORITY or QualityOfService to be used by concurrentPerform?

Gerriet.



More information about the swift-users mailing list