You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* New private property hasTriggredResume introduces to track whether the task actually move passed the suspendCount in execution
* New internal property isSuspendedAfterResume introduced to find the accurate state reason for suspend state
Copy file name to clipboardExpand all lines: Foundation/URLSession/URLSession.swift
+27-3Lines changed: 27 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -345,14 +345,38 @@ open class URLSession : NSObject {
345
345
openfunc reset(completionHandler:@escaping()->Void){NSUnimplemented()} /* empty all cookies, cache and credential stores, removes disk files, issues -flushWithCompletionHandler:. Invokes completionHandler() on the delegate queue if not nil. */
346
346
347
347
openfunc flush(completionHandler:@escaping()->Void){NSUnimplemented()}/* flush storage to disk and clear transient network caches. Invokes completionHandler() on the delegate queue if not nil. */
348
-
349
-
openfunc getTasksWithCompletionHandler(completionHandler:@escaping([URLSessionDataTask],[URLSessionUploadTask],[URLSessionDownloadTask])->Void){NSUnimplemented()}/* invokes completionHandler with outstanding data, upload and download tasks. */
348
+
349
+
/* invokes completionHandler with outstanding data, upload and download tasks. */
0 commit comments