Skip to content

Instantly share code, notes, and snippets.

@RBusarow
Last active June 24, 2019 12:31
Show Gist options
  • Save RBusarow/935e6ca767df67afe2ff0d62f58f8aa4 to your computer and use it in GitHub Desktop.
Save RBusarow/935e6ca767df67afe2ff0d62f58f8aa4 to your computer and use it in GitHub Desktop.
object Dispatchers {
val Default: CoroutineDispatcher = createDefaultDispatcher()
val Main: MainCoroutineDispatcher get() = MainDispatcherLoader.dispatcher
val Unconfined: CoroutineDispatcher = kotlinx.coroutines.Unconfined
val IO: CoroutineDispatcher = DefaultScheduler.IO
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment