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.
On Oct 7, 2016, at 6:11 AM, Yue Cui via swift-dev <swift-dev@swift.org> wrote:
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@swift.org https://lists.swift.org/mailman/listinfo/swift-dev
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@uk.ibm.com
IBM Monitoring and Diagnostic Tools
Find me on:
···
From: Yue Cui via swift-dev <swift-dev@swift.org>
To: swift-dev@swift.org
Date: 07/10/2016 14:12
Subject: [swift-dev] DispatchQueue function in Swift 3.0
Sent by: swift-dev-bounces@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@swift.org https://lists.swift.org/mailman/listinfo/swift-dev