Browse Source

Turn off cancellation handler.

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

+ 2 - 2
Source/Features/Concurrency.swift

@@ -349,13 +349,13 @@ extension DataRequest {
                                  forResponse onResponse: @escaping (@escaping (DataResponse<Value, AFError>) -> Void) -> Void)
         -> DataTask<Value> {
         let task = Task {
-            await withTaskCancellationHandler(handler: { self.cancel() }, operation: {
+//            await withTaskCancellationHandler(handler: { self.cancel() }, operation: {
                 await withUnsafeContinuation { continuation in
                     onResponse {
                         continuation.resume(returning: $0)
                     }
                 }
-            })
+//            })
 //            
 //            await withTaskCancellationHandler {
 //                await withCheckedContinuation { continuation in