Answers for "alamofire cancel all request"

0

alamofire cancel all request

Alamofire.SessionManager.default.session.getTasksWithCompletionHandler { (sessionDataTask, uploadData, downloadData) in
    sessionDataTask.forEach { $0.cancel() }
    uploadData.forEach { $0.cancel() }
    downloadData.forEach { $0.cancel() }
}
Posted by: Guest on November-23-2020

Browse Popular Code Answers by Language