Skip to content

Commit 7981436

Browse files
committed
Xcode 16 Beta 5
1 parent 41ed260 commit 7981436

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ extension Array where Element == SwiftSetting {
3333
static var upcomingFeatures: [SwiftSetting] {
3434
[
3535
.enableUpcomingFeature("ExistentialAny"),
36-
.enableExperimentalFeature("StrictConcurrency"),
37-
.swiftLanguageVersion(.v6)
36+
.swiftLanguageMode(.v6)
3837
]
3938
}
4039
}

Sources/IdentifiableContinuation.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public func withIdentifiableContinuation<T>(
5353
let id = IdentifiableContinuation<T, Never>.ID()
5454
let state = AllocatedLock(initialState: (isStarted: false, isCancelled: false))
5555
return await withTaskCancellationHandler {
56-
await withCheckedContinuation(function: function) {
56+
await withCheckedContinuation(isolation: isolation, function: function) {
5757
let continuation = IdentifiableContinuation(id: id, continuation: $0)
5858
body(continuation)
5959
let sendCancel = state.withLock {
@@ -63,7 +63,6 @@ public func withIdentifiableContinuation<T>(
6363
if sendCancel {
6464
handler(id)
6565
}
66-
_ = isolation
6766
}
6867
} onCancel: {
6968
let sendCancel = state.withLock {
@@ -99,7 +98,7 @@ public func withIdentifiableThrowingContinuation<T>(
9998
let id = IdentifiableContinuation<T, any Error>.ID()
10099
let state = AllocatedLock(initialState: (isStarted: false, isCancelled: false))
101100
return try await withTaskCancellationHandler {
102-
try await withCheckedThrowingContinuation(function: function) {
101+
try await withCheckedThrowingContinuation(isolation: isolation, function: function) {
103102
let continuation = IdentifiableContinuation(id: id, continuation: $0)
104103
body(continuation)
105104
let sendCancel = state.withLock {
@@ -109,7 +108,6 @@ public func withIdentifiableThrowingContinuation<T>(
109108
if sendCancel {
110109
handler(id)
111110
}
112-
_ = isolation
113111
}
114112
} onCancel: {
115113
let sendCancel = state.withLock {

0 commit comments

Comments
 (0)