@@ -53,7 +53,7 @@ public func withIdentifiableContinuation<T>(
53
53
let id = IdentifiableContinuation < T , Never > . ID ( )
54
54
let state = AllocatedLock ( initialState: ( isStarted: false , isCancelled: false ) )
55
55
return await withTaskCancellationHandler {
56
- await withCheckedContinuation ( function: function) {
56
+ await withCheckedContinuation ( isolation : isolation , function: function) {
57
57
let continuation = IdentifiableContinuation ( id: id, continuation: $0)
58
58
body ( continuation)
59
59
let sendCancel = state. withLock {
@@ -63,7 +63,6 @@ public func withIdentifiableContinuation<T>(
63
63
if sendCancel {
64
64
handler ( id)
65
65
}
66
- _ = isolation
67
66
}
68
67
} onCancel: {
69
68
let sendCancel = state. withLock {
@@ -99,7 +98,7 @@ public func withIdentifiableThrowingContinuation<T>(
99
98
let id = IdentifiableContinuation < T , any Error > . ID ( )
100
99
let state = AllocatedLock ( initialState: ( isStarted: false , isCancelled: false ) )
101
100
return try await withTaskCancellationHandler {
102
- try await withCheckedThrowingContinuation ( function: function) {
101
+ try await withCheckedThrowingContinuation ( isolation : isolation , function: function) {
103
102
let continuation = IdentifiableContinuation ( id: id, continuation: $0)
104
103
body ( continuation)
105
104
let sendCancel = state. withLock {
@@ -109,7 +108,6 @@ public func withIdentifiableThrowingContinuation<T>(
109
108
if sendCancel {
110
109
handler ( id)
111
110
}
112
- _ = isolation
113
111
}
114
112
} onCancel: {
115
113
let sendCancel = state. withLock {
0 commit comments