Skip to content

Instantly share code, notes, and snippets.

@pranay1494
Created May 2, 2020 17:20
Show Gist options
  • Save pranay1494/5506f41509db05bb1eff7599508959c0 to your computer and use it in GitHub Desktop.
Save pranay1494/5506f41509db05bb1eff7599508959c0 to your computer and use it in GitHub Desktop.
package com.example.coroutinesdemo.base
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
data class CoroutineDispatcherProvider constructor(
val main: CoroutineDispatcher = Dispatchers.Main,
val default: CoroutineDispatcher = Dispatchers.Default,
val io: CoroutineDispatcher = Dispatchers.IO
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment