Forráskód Böngészése

[Issue #269] Documenting requirement to cancel pending tasks before session manager deinitialization

Mattt Thompson 11 éve
szülő
commit
d41b8da0a1
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      Source/Alamofire.swift

+ 2 - 0
Source/Alamofire.swift

@@ -211,6 +211,8 @@ extension NSURLRequest: URLRequestConvertible {
 
 /**
     Responsible for creating and managing `Request` objects, as well as their underlying `NSURLSession`.
+
+    When finished with a manager, be sure to call either `session.finishTasksAndInvalidate()` or `session.invalidateAndCancel()` before deinitialization.
 */
 public class Manager {