Преглед изворни кода

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

Mattt Thompson пре 11 година
родитељ
комит
d41b8da0a1
1 измењених фајлова са 2 додато и 0 уклоњено
  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 {