Skip to content

Instantly share code, notes, and snippets.

@RBusarow
Created January 11, 2020 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RBusarow/3980456d24a44f8442988ddb26bb875e to your computer and use it in GitHub Desktop.
Save RBusarow/3980456d24a44f8442988ddb26bb875e to your computer and use it in GitHub Desktop.
CoroutineScope implementations
class MyCoroutineScope : CoroutineScope {
override val coroutineContext = Job() + Dispatchers.Main
}
val someScope = CoroutineScope(Job() + Dispatchers.IO)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment