Skip to content

Instantly share code, notes, and snippets.

@jordanterry
Last active April 8, 2018 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordanterry/6b8869a5947b64b7c7ffb14ae2e8de99 to your computer and use it in GitHub Desktop.
Save jordanterry/6b8869a5947b64b7c7ffb14ae2e8de99 to your computer and use it in GitHub Desktop.
Use functions not single function interfaces.
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