Once the request thread is started, it must be completed and cannot be canceled. Q&A Details During iOS development, multiple network requests are initiated at the same time. What should I do if the network is interrupted? There should be an interrupt handling mechanism for network interruptions. 1-Stop the current thread processing. If it is about downloading, you should resume the download after determining that the network connection is normal. 2-The current network is interrupted, and a reload request for the interface and network will be made after the end.
Once the request thread is started, it must be completed and cannot be canceled.
Q&A Details
During iOS development, multiple network requests are initiated at the same time. What should I do if the network is interrupted?
There should be an interrupt handling mechanism for network interruptions.
1-Stop the current thread processing. If it is about downloading, you should resume the download after determining that the network connection is normal.
2-The current network is interrupted, and a reload request for the interface and network will be made after the end.
Check the network and re-initiate the request