Skip to content

Commit 3f0aca6

Browse files
committed
Another temp decl for Foundation.
1 parent 20a0b65 commit 3f0aca6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/swift/Block.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ public class DispatchWorkItem {
3939
internal var _block: _DispatchBlock
4040
internal var _group: DispatchGroup?
4141

42+
// Temporary for swift-corelibs-foundation
43+
@available(*, deprecated, renamed: "DispatchWorkItem(qos:flags:block:)")
44+
public convenience init(group: DispatchGroup, qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @convention(block) () -> ()) {
45+
self.init(qos: qos, flags: flags, block: block)
46+
47+
}
48+
4249
public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @convention(block) () -> ()) {
4350
_block = dispatch_block_create_with_qos_class(dispatch_block_flags_t(flags.rawValue),
4451
qos.qosClass.rawValue.rawValue, Int32(qos.relativePriority), block)

0 commit comments

Comments
 (0)