Coroutine Context: Accessing and Creating Context

Learn about coroutine context and how to access context in a suspending function or create a unique context.

So CoroutineContext is just a way to hold and pass data. By default, the parent passes its context to the child, one of the parent-child relationship effects. We say that the child inherits context from its parent.

Get hands-on with 1400+ tech skills courses.