We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a6a8ba commit 325a819Copy full SHA for 325a819
proposals/KEEP-0164-coroutines.md
@@ -626,6 +626,7 @@ The following style is recommended for library defined context elements.
626
The example below shows a hypothetical authorization context element that stores current user name:
627
628
```kotlin
629
+ // ↓ AuthUser here is a reference to the companion object, shorthand for AuthUser.Key
630
class AuthUser(val name: String) : AbstractCoroutineContextElement(AuthUser) {
631
companion object Key : CoroutineContext.Key<AuthUser>
632
}
0 commit comments