Last active
July 7, 2019 18:00
-
-
Save RBusarow/9d2b793c74a91bd54a9dc2b6a9a457bd to your computer and use it in GitHub Desktop.
Basic CoroutineScope implementation which defaults to Main
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
class SomeClass : CoroutineScope { | |
val job = Job() | |
override val coroutineContext = job + Dispatchers.Main | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment