Created
April 8, 2020 13:11
-
-
Save diousk/043f06d2b36706f446122a30c2e1861e 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
suspend fun View.awaitLayout() = suspendCancellableCoroutine<Unit>{ | |
// use suspendCancellableCoroutine so that | |
// we can remove this listener when the job is cancelled | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment