Просмотр исходного кода

[Issue #681] Added note to the README to keep a reference to the manager.

Christian Noon 10 лет назад
Родитель
Сommit
9a1e321cf0
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      README.md

+ 2 - 0
README.md

@@ -978,6 +978,8 @@ let manager = Manager(
 )
 ```
 
+> Make sure to keep a reference to the new `Manager` instance, otherwise your requests will all get cancelled when your `manager` is deallocated.
+
 These server trust policies will result in the following behavior:
 
 * `test.example.com` will always use certificate pinning with certificate chain and host validation enabled thus requiring the following criteria to be met to allow the TLS handshake to succeed: