-
-
Save NoNews/e5f4f8b72054fb86c879c14b02508129 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
//handler here is created with Looper.mainLooper() | |
override fun dispatch(context: CoroutineContext, block: Runnable) { | |
if (!handler.post(block)) { | |
cancelOnRejection(context, block) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment