Created
August 24, 2016 08:17
-
-
Save fitomad/2bb45df1feeb2475d7794abb4184674b 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
// | |
// Antes. Un callback por cada tipo devuelto | |
// | |
typedef ResultVenueCompletionHandler = (result: Venue) -> (Void) | |
typedef ResultHotelCompletionHandler = (result: Hotel) -> (Void) | |
// | |
// Ahora. Al poder ser definidos como genéricos con un tipo nos vale | |
// | |
typedef ResultCompletionHandler<T> = (T) -> (Void) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment