We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e93ef9c commit 40d4b2cCopy full SHA for 40d4b2c
Source/Dispatch.swift
@@ -98,6 +98,22 @@ public class DispatchQueue : DispatchObject {
98
#endif
99
}
100
101
+ public static func __implicit(_ queue: DispatchQueue?) -> dispatch_queue_t? {
102
+ if let queue = queue {
103
+ return queue.queue
104
+ } else {
105
+ return nil
106
+ }
107
108
+
109
+ public static func __implicit(_ queue: dispatch_queue_t?) -> DispatchQueue? {
110
111
+ return DispatchQueue(queue: queue)
112
113
114
115
116
117
internal convenience init(__label: String, attr: dispatch_queue_attr_t?, queue: DispatchQueue?) {
118
var raw: dispatch_queue_t
119
if #defined(COCOA) {
0 commit comments