[swift-users] QualityOfService for concurrentPerform in Swift 3

Saagar Jha saagar at saagarjha.com
Sun Sep 25 11:08:17 CDT 2016


You might be looking for the DispatchQoS.QoSClass <https://developer.apple.com/reference/dispatch/dispatchqos.qosclass> enum.

Saagar Jha



> On Sep 25, 2016, at 05:19, Gerriet M. Denkmann via swift-users <swift-users at swift.org> wrote:
> 
> 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.
> 
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160925/f6404368/attachment.html>


More information about the swift-users mailing list