Working on a Reactor/Spring WebFlux application an...
# coroutines
c
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
Sounds like a question for @sdeleuze
s
You can maybe try to use
CoWebFilter
which is a new Coroutines based Web filter and watch how it is implemented.