Created
March 27, 2017 16:49
-
-
Save JohnSundell/e716a5afc12febc07b198655a7411159 to your computer and use it in GitHub Desktop.
Code sample #2 from https://medium.com/@johnsundell/type-erasure-using-closures-in-swift-1e6125231f8
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
protocol ModelLoading { | |
associatedtype Model | |
func load(completionHandler: (Result<Model>) -> Void) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment