File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ class Submission<T: Sendable>: CustomStringConvertible {
170170final class SingleshotSubmission < T: Sendable > : Submission < T > {
171171 weak var group : SubmissionGroup < T > ?
172172
173- private typealias Continuation = CheckedContinuation < T , Error >
173+ private typealias Continuation = UnsafeContinuation < T , Error >
174174 private var continuation : Continuation !
175175
176176 init (
@@ -210,7 +210,7 @@ final class SingleshotSubmission<T: Sendable>: Submission<T> {
210210
211211 func submit( ) async throws -> T {
212212 try await withTaskCancellationHandler ( operation: {
213- try await withCheckedThrowingContinuation { continuation in
213+ try await withUnsafeThrowingContinuation { continuation in
214214 // guaranteed to run immediately
215215 self . continuation = continuation
216216 Task {
You can’t perform that action at this time.
0 commit comments