how to pass variable value to outside of URLSession async - swift 3

前端 未结 3 826

I have this code :

let task = URLSession.shared.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
    if error != nil {
              


        
3条回答
提交回复
热议问题