[swift-dev] DispatchQueue function in Swift 3.0

Chris Bailey BAILEYC at uk.ibm.com
Fri Oct 7 08:24:55 CDT 2016


Are you looking for the following?
        
DispatchQoS.QoSClass.<background|utility|default|userInitiated|userInteractive>

Regards



C (Chris) Bailey
 

Senior Technical Staff Member (STSM)
 Hursley Park
Runtime Technologies for Java, Node.js and Swift
 Winchester, Hampshire SO21 2JN
IBM Software Group
 United Kingdom

Phone:
+44-1962-817078
IBM SDKs for Java™

Mobile:
+44-7738-310815 (272022)
IBM SDKs for Node.js™

e-mail:
baileyc at uk.ibm.com
IBM Monitoring and Diagnostic Tools

Find me on:   
 





From:   Yue Cui via swift-dev <swift-dev at swift.org>
To:     swift-dev at swift.org
Date:   07/10/2016 14:12
Subject:        [swift-dev] DispatchQueue function in Swift 3.0
Sent by:        swift-dev-bounces at swift.org



Does anyone know the equivalent function of DispatchQueue in Swift 3.0?

Thanks in advance.
----------------------------------------------------------------
For the DispatchQueue, the swift 3 has changed it's properties.

The code for swift 2.xx looks like this:

let priority = DispatchQueue.GlobalQueuePriority.default
                DispatchQueue.global(priority: priority).async {
                    // ALL the API processing..
                    DispatchQueue.main.async {
                        // ALL the UI reload..
                    }
                }

the error messages shown in Swift 3.0 are:
'default' was deprecated in iOS 8.0: Use qos attributes instead.
'global(priority:)' was deprecated in iOS 8.0.
_______________________________________________
swift-dev mailing list
swift-dev at swift.org
https://lists.swift.org/mailman/listinfo/swift-dev



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20161007/0060fb05/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 360 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20161007/0060fb05/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 434 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20161007/0060fb05/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 431 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20161007/0060fb05/attachment-0001.jpe>


More information about the swift-dev mailing list