Browse Source

Try unsafe continuations.

Jon Shier 1 year ago
parent
commit
46a129f7c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Features/Concurrency.swift

+ 1 - 1
Source/Features/Concurrency.swift

@@ -350,7 +350,7 @@ extension DataRequest {
         -> DataTask<Value> {
         let task = Task {
             await withTaskCancellationHandler(handler: { self.cancel() }, operation: {
-                await withCheckedContinuation { continuation in
+                await withUnsafeContinuation { continuation in
                     onResponse {
                         continuation.resume(returning: $0)
                     }