mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-09-09 19:31:58 +02:00
Initial prototype for Swift 6 mode
This commit is contained in:
@@ -99,7 +99,7 @@ extension DispatchQueue {
|
||||
|
||||
@nonobjc @inline(__always)
|
||||
internal func cs_async(
|
||||
_ closure: @escaping () -> Void
|
||||
_ closure: @escaping @Sendable () -> Void
|
||||
) {
|
||||
|
||||
self.async { autoreleasepool(invoking: closure) }
|
||||
@@ -115,7 +115,7 @@ extension DispatchQueue {
|
||||
|
||||
@nonobjc @inline(__always)
|
||||
internal func cs_barrierAsync(
|
||||
_ closure: @escaping () -> Void
|
||||
_ closure: @escaping @Sendable () -> Void
|
||||
) {
|
||||
|
||||
self.async(flags: .barrier) { autoreleasepool(invoking: closure) }
|
||||
|
||||
Reference in New Issue
Block a user