Working on a Reactor/Spring WebFlux application and trying to figure out how to update the Reactor context from within a coroutine. Can get the current context via
currentCoroutineContext()[ReactorContext]
, which is modifiable but those mods aren’t seen outside of the scope (a WebFilter in this case). Thoughts on how to update the Reactor context within a coroutine?
j
Jacob
05/30/2023, 12:40 PM
Sounds like a question for @sdeleuze
s
sdeleuze
05/31/2023, 2:29 PM
You can maybe try to use
CoWebFilter
which is a new Coroutines based Web filter and watch how it is implemented.