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
Copy file name to clipboardExpand all lines: Foundation/URLSession/URLSession.swift
+24-2
Original file line number
Diff line number
Diff line change
@@ -346,9 +346,31 @@ open class URLSession : NSObject {
346
346
}
347
347
}
348
348
349
-
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. */
349
+
/* empty all cookies, cache and credential stores, removes disk files, issues -flushWithCompletionHandler:. Invokes completionHandler() on the delegate queue. */
openfunc flush(completionHandler:@escaping()->Void){NSUnimplemented()}/* flush storage to disk and clear transient network caches. Invokes completionHandler() on the delegate queue if not nil. */
367
+
/* flush storage to disk and clear transient network caches. Invokes completionHandler() on the delegate queue. */
// -init is silently incorrect in URLSessionCofiguration on the desktop. Ensure code that relied on swift-corelibs-foundation's init() being functional is redirected to the appropriate cross-platform class property.
0 commit comments