Created
June 3, 2023 10:42
-
-
Save omkar-tenkale/6ae94334a110a6948fe3b3f7e4e85631 to your computer and use it in GitHub Desktop.
This file contains 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
sealed class Dispatcher: CoroutineContext.Element { | |
object Main : Dispatcher() | |
object Background : Dispatcher() | |
override val key = DispatcherKey | |
} | |
object DispatcherKey: CoroutineContext.Key<Dispatcher>{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment