Skip to content

Commit 3a53f74

Browse files
committed
[exclusivity] Add availability to some more test declarations.
(cherry picked from commit f390450)
1 parent fcb1820 commit 3a53f74

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/Concurrency/Runtime/exclusivity_custom_executors.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public func withExclusiveAccess<T, U>(to x: inout T, f: (inout T) -> U) -> U {
4242
return f(&x)
4343
}
4444

45+
@available(SwiftStdlib 5.5, *)
4546
@MainActor @inline(never)
4647
func withExclusiveAccessAsync<T, U>(to x: inout T, f: (inout T) async -> U) async -> U {
4748
debugLog("==> Enter 'withExclusiveAccessAsync'")

test/Concurrency/Runtime/exclusivity_custom_executors_filecheck.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public func withExclusiveAccess<T, U>(to x: inout T, f: (inout T) -> U) -> U {
7171
return f(&x)
7272
}
7373

74+
@available(SwiftStdlib 5.5, *)
7475
@MainActor @inline(never)
7576
func withExclusiveAccessAsync<T, U>(to x: inout T, f: (inout T) async -> U) async -> U {
7677
debugLog("==> Enter 'withExclusiveAccessAsync'")

0 commit comments

Comments
 (0)