Created
May 2, 2020 01:26
-
-
Save eMdOS/bf9f122c9060e19ab2bba1f3ee843fe4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Obj-C | |
- (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *) | |
urlcompletionHandler:(void (^)( | |
NSData * _Nullable data, | |
NSURLResponse * _Nullable response, | |
NSError * _Nullable error) | |
)completionHandler; | |
// Swift | |
func dataTask( | |
with url: URL, | |
completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void | |
) -> URLSessionDataTask |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment