Skip to content

Commit 20bedf9

Browse files
Update kotlinx-coroutines-core/jvm/src/ThreadContextElement.kt
Co-authored-by: dkhalanskyjb <[email protected]>
1 parent db0d613 commit 20bedf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/jvm/src/ThreadContextElement.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ public interface CopyableThreadContextElement<S> : ThreadContextElement<S> {
155155
* coroutine's context when the child coroutine's context contains an element with the same [key] as the
156156
* current one.
157157
*
158-
* This function is called on current element, supplied with an element retrieved from child's
159-
* coroutine context by the current [key].
158+
* This method is invoked on the original element, accepting as the parameter
159+
* the element that is supposed to overwrite it.
160160
*/
161161
public fun mergeForChild(overwritingElement: CoroutineContext.Element): CoroutineContext
162162
}

0 commit comments

Comments
 (0)