Set number of concurrent downloads with NSURLSessionDownloadTask

前端 未结 2 1258
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 17:01

I\'m using the new NSURLSession API and allowing the user to download files. I\'d like to try and tell my NSURLSession how many simultaneous downloads to run, but I don\'t see a

2条回答
  •  眼角桃花
    2021-01-31 17:38

    You can set it in the NSURLSessionConfiguration object with the HTTPMaximumConnectionsPerHost property.

提交回复
热议问题