Coroutine Context Flashcards
1
Q
What is Coroutine Context?
A
Coroutine context is a set of elements which defines the behavior of coroutines.
- Job- controls lifecycle of coroutines
- CoroutineDispatcher- dispatches work to the appropriate thread
- coroutinename - used for debugging
- coroutineexceptionhandler - handles uncaught exceptions.