Last active
April 8, 2018 10:07
-
-
Save jordanterry/6b8869a5947b64b7c7ffb14ae2e8de99 to your computer and use it in GitHub Desktop.
Use functions not single function interfaces.
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
val callback: (Data) -> () = { data -> | |
// Do something. | |
} | |
dataRepository.getData(callback) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment