Created
November 17, 2019 03:10
-
-
Save Yerazhas/13dcbf1b499b3edf5936433529aaac00 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| func request(to route: Route, completion: @escaping (Response?, Error?)) { | |
| ... | |
| } | |
| enum Result<T> { | |
| case success(T) | |
| case failure(Error) | |
| } | |
| func request1(to route: Route, completion: @escaping Result<Response>) { | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment