DataRaft swift package
This commit is contained in:
parent
d64c6b2ef2
commit
1b2cdaf23e
23 changed files with 1862 additions and 0 deletions
19
Sources/DataRaft/Extensions/DispatchQueue.swift
Normal file
19
Sources/DataRaft/Extensions/DispatchQueue.swift
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import Foundation
|
||||
|
||||
extension DispatchQueue {
|
||||
convenience init<T>(
|
||||
for type: T.Type,
|
||||
qos: DispatchQoS = .unspecified,
|
||||
attributes: Attributes = [],
|
||||
autoreleaseFrequency: AutoreleaseFrequency = .inherit,
|
||||
target: DispatchQueue? = nil
|
||||
) {
|
||||
self.init(
|
||||
label: String(describing: type),
|
||||
qos: qos,
|
||||
attributes: attributes,
|
||||
autoreleaseFrequency: autoreleaseFrequency,
|
||||
target: target
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue