Skip to content

Commit

Permalink
Xcode 16 Beta 5
Browse files Browse the repository at this point in the history
  • Loading branch information
swhitty committed Aug 6, 2024
1 parent 41ed260 commit 1affe6c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/IdentifiableContinuation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public func withIdentifiableContinuation<T>(
let id = IdentifiableContinuation<T, Never>.ID()
let state = AllocatedLock(initialState: (isStarted: false, isCancelled: false))
return await withTaskCancellationHandler {
await withCheckedContinuation(function: function) {
await withCheckedContinuation(isolation: isolation, function: function) {
let continuation = IdentifiableContinuation(id: id, continuation: $0)
body(continuation)
let sendCancel = state.withLock {
Expand All @@ -63,7 +63,6 @@ public func withIdentifiableContinuation<T>(
if sendCancel {
handler(id)
}
_ = isolation
}
} onCancel: {
let sendCancel = state.withLock {
Expand Down Expand Up @@ -99,7 +98,7 @@ public func withIdentifiableThrowingContinuation<T>(
let id = IdentifiableContinuation<T, any Error>.ID()
let state = AllocatedLock(initialState: (isStarted: false, isCancelled: false))
return try await withTaskCancellationHandler {
try await withCheckedThrowingContinuation(function: function) {
try await withCheckedThrowingContinuation(isolation: isolation, function: function) {
let continuation = IdentifiableContinuation(id: id, continuation: $0)
body(continuation)
let sendCancel = state.withLock {
Expand All @@ -109,7 +108,6 @@ public func withIdentifiableThrowingContinuation<T>(
if sendCancel {
handler(id)
}
_ = isolation
}
} onCancel: {
let sendCancel = state.withLock {
Expand Down

0 comments on commit 1affe6c

Please sign in to comment.