We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fecc20 commit 5758a77Copy full SHA for 5758a77
core/kotlinx-coroutines-core/src/ThreadContextElement.kt
@@ -84,7 +84,7 @@ public interface ThreadContextElement<S> : CoroutineContext.Element {
84
* val myThreadLocal = ThreadLocal<String?>()
85
* ...
86
* println(myThreadLocal.get()) // Prints "null"
87
- * launch(CommonPool + myThreadLocal.asContextElement(initialValue = "foo")) {
+ * launch(CommonPool + myThreadLocal.asContextElement(value = "foo")) {
88
* println(myThreadLocal.get()) // Prints "foo"
89
* withContext(UI) {
90
* println(myThreadLocal.get()) // Prints "foo", but it's on UI thread
0 commit comments