Skip to content

Instantly share code, notes, and snippets.

@RBusarow
Last active July 7, 2019 18:00
Show Gist options
  • Save RBusarow/9d2b793c74a91bd54a9dc2b6a9a457bd to your computer and use it in GitHub Desktop.
Save RBusarow/9d2b793c74a91bd54a9dc2b6a9a457bd to your computer and use it in GitHub Desktop.
Basic CoroutineScope implementation which defaults to Main
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