Kotlin context parameters declare values a function needs from its surrounding scope. When a caller provides that context, the function can use it without repeating the value as an ordinary argument.
The demo routes a scoped service into the required slot. The requirement is visible in the type signature. Context parameters became stable in Kotlin 2.4, while explicit context arguments for ambiguous calls remain experimental.
When to use
Consider them for shared context such as logging or transactions. Stable support requires Kotlin 2.4 or later.