Created
November 27, 2017 13:06
-
-
Save tiwiz/c4136b45c10e71a77b15f12a92526416 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
fun View.onClickAsync(action: suspend () -> Unit) { | |
setOnClickListener { | |
launch(UI) { | |
action() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment