S
S
swcalc2016-03-31 05:00:46
Swift
swcalc, 2016-03-31 05:00:46

Swift and URLSession is it possible to send multiple POST/GET requests at the same time?

Hello, a couple of days ago, I discovered a new app language.
Interested in such a question, is it possible to send several requests at the same time and how to prepare them ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Petr2009, 2016-04-07
@swcalc

Maximum asynchronous tasks - 9.
Download files. Only from personal experience (did a twitter client), depends on the file size. It is advisable to determine the type of connection - WIFI (LTE) or 2G-3G and set the coefficient. For LTE (WIFI), download from Twitter:
- files 0-150Kb in 3, maximum 5 streams;
- files 150-500Kb in 2, maximum 3 streams;
- more than 500Kb in one stream.
I did it through a block, not a delegate, it's easier to make a reverse counter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question