Skip to content

Instantly share code, notes, and snippets.

@arkivanov
Created May 10, 2019 15:57
Show Gist options
  • Save arkivanov/be69aa5a5f331389c883a070e89d369a to your computer and use it in GitHub Desktop.
Save arkivanov/be69aa5a5f331389c883a070e89d369a to your computer and use it in GitHub Desktop.
Kotlin consumer interface
interface Consumer<in T> {
fun accept(value: T)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment