{"action":"opened","issue":{"url":"https://api.github.com/repos/ProcedureKit/ProcedureKit/issues/915","repository_url":"https://api.github.com/repos/ProcedureKit/ProcedureKit","labels_url":"https://api.github.com/repos/ProcedureKit/ProcedureKit/issues/915/labels{/name}","comments_url":"https://api.github.com/repos/ProcedureKit/ProcedureKit/issues/915/comments","events_url":"https://api.github.com/repos/ProcedureKit/ProcedureKit/issues/915/events","html_url":"https://github.com/ProcedureKit/ProcedureKit/issues/915","id":395077680,"node_id":"MDU6SXNzdWUzOTUwNzc2ODA=","number":915,"title":"[Question]: How to used dataTask(with request: URLRequest, completionHandler) in version 5","user":{"login":"dvirvmoblin","id":25175308,"node_id":"MDQ6VXNlcjI1MTc1MzA4","avatar_url":"https://avatars2.githubusercontent.com/u/25175308?v=4","gravatar_id":"","url":"https://api.github.com/users/dvirvmoblin","html_url":"https://github.com/dvirvmoblin","followers_url":"https://api.github.com/users/dvirvmoblin/followers","following_url":"https://api.github.com/users/dvirvmoblin/following{/other_user}","gists_url":"https://api.github.com/users/dvirvmoblin/gists{/gist_id}","starred_url":"https://api.github.com/users/dvirvmoblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvirvmoblin/subscriptions","organizations_url":"https://api.github.com/users/dvirvmoblin/orgs","repos_url":"https://api.github.com/users/dvirvmoblin/repos","events_url":"https://api.github.com/users/dvirvmoblin/events{/privacy}","received_events_url":"https://api.github.com/users/dvirvmoblin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-01T12:14:43Z","updated_at":"2019-01-01T12:14:43Z","closed_at":null,"author_association":"NONE","body":"In the 4.5.0 version I had this code :\r\n------\r\nlet session = URLSession(configuration: sessionConfig)\r\n        // Start a new Task\r\n        let task = session.dataTask(with: request, completionHandler: { [unowned self] (data: Data?, response: URLResponse?, error: Error?) -> Void in\r\n\r\nand I handle the result in the completion block.\r\n------\r\nBut in the last version 5.0.0 on Xcode 10 I get a compilation error the dataTask function has Ambiguous because there is 2 function with the same signature (one in the ProcedureKit and one in Foundation) \r\n\r\nSo how to use this function ?\r\n\r\nThanks in ahead,\r\nDvir valdfogel "}}
{"actor":{"display_login":"dvirvmoblin"}}