# What is CoroutineContext and how does it work?

DevFeed: [What is CoroutineContext and how does it work?](<https://devfeed.tech/articles/what-is-coroutinecontext-and-how-does-it-work-39235.md>)

Original publisher: [Read original article](<https://kt.academy/article/cc-coroutine-context>)

Published: 2024-03-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [kotlin-coroutines](<https://devfeed.tech/topics/kotlin-coroutines.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [context](<https://devfeed.tech/topics/context.md>), [interface](<https://devfeed.tech/topics/interface.md>)

Tags: [classes](<https://devfeed.tech/tags/classes.md>), [context](<https://devfeed.tech/tags/context.md>), [interface](<https://devfeed.tech/tags/interface.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-coroutines](<https://devfeed.tech/tags/kotlin-coroutines.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

This tutorial explains CoroutineContext as an indexed set of coroutine context elements. It covers combining elements, retrieving them by key or square-bracket syntax, and the role of companion objects as keys in kotlinx.coroutines.

## Source excerpt

A deep explanation of the coroutine context - the powerful data holder for coroutines.