@@ -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