spring-framework/framework-docs/modules/ROOT/pages/languages
Sébastien Deleuze 2faed3cdbb Refine PropagationContextElement
This commit apply several refinements to PropagationContextElement:
 - Capture the ThreadLocal when instantiating the
   PropagationContextElement in order to support dispatchers switching
   threads
 - Remove the constructor parameter which is not idiomatic and breaks
   the support when switching threads, and use instead the
   updateThreadContext(context: CoroutineContext) parameter
 - Make the kotlinx-coroutines-reactor dependency optional
 - Make the properties private

The Javadoc and tests are also updated to use the
`Dispatchers.IO + PropagationContextElement()` pattern performed
outside of the suspending lambda, which is the typical use case.

Closes gh-35469
2025-09-12 17:26:07 +02:00
..
kotlin Refine PropagationContextElement 2025-09-12 17:26:07 +02:00
dynamic.adoc Consistent line breaks in reference documentation 2025-07-10 19:33:34 +02:00
groovy.adoc Revise IoC container introduction for modern configuration styles 2024-05-08 17:51:25 +02:00
kotlin.adoc Consistent line breaks in reference documentation 2025-07-10 19:33:34 +02:00