mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-17 09:51:20 +00:00
no message
This commit is contained in:
@@ -39,12 +39,16 @@ public final class Queue {
|
||||
self.specialIsMainQueue = specialIsMainQueue
|
||||
}
|
||||
|
||||
public init(name: String? = nil) {
|
||||
public init(name: String? = nil, target: Queue? = nil) {
|
||||
self.nativeQueue = DispatchQueue(label: name ?? "", qos: .default)
|
||||
|
||||
self.specialIsMainQueue = false
|
||||
|
||||
self.nativeQueue.setSpecific(key: QueueSpecificKey, value: self.specific)
|
||||
|
||||
if let target = target {
|
||||
//self.nativeQueue.setTarget(queue: target.nativeQueue)
|
||||
}
|
||||
}
|
||||
|
||||
public func isCurrent() -> Bool {
|
||||
|
||||
Reference in New Issue
Block a user