Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. private func makeValueGETRequest(url: URL, onCompletion: @escaping (_ value: NSNumber?) -> Void) {
  2. let request = URLSession.shared.dataTask(with: url) { (data, response, error) in
  3. // TODO: Get the data and return it
  4. }
  5. request.resume()
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement