Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我使用 NSURLSession 下载一些文件,并且一旦它们完成我就让它闲置(而不是使其无效),它是否会消耗任何网络流量来保持与服务器的连接打开?换句话说,我应该让它失效并在下次需要下载时创建一个新的,还是让它保持空闲等待再次使用?
我想你空转它是安全的。如果您不启动任务,它不应该导致任何流量。