abstract fun mergeForChild(overwritingElement: CoroutineContext.Element): CoroutineContext

Returns a CopyableThreadContextElement to replace thisCopyableThreadContextElement in the child coroutine's context that is under construction if the added context does contain an element with the same key.

This method is invoked on the original element, accepting as the parameter the element that is supposed to overwrite it.


Link copied to clipboard