Introduce interop between CoroutineContext and Reactor Context
See original GitHub issueReactor Context seems similar to CoroutineContext
, so I tend to think it should be interesting to upgrade kotlinx-coroutines-reactor
for seamless integration between both.
@elizarov Any thoughts?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:15 (10 by maintainers)
Top Results From Across the Web
ReactorContext - Kotlin
Wraps Reactor's Context into a CoroutineContext element for seamless integration between Reactor and kotlinx.coroutines. Context.
Read more >Going Reactive with Spring, Coroutines and Kotlin Flow
As I said in the introduction, choices depend of the context and are a matter of taste. I am a big fan of...
Read more >Async Models | GraphQL Kotlin
In order to preserve coroutine context, we need to populate GraphQLContext map with a CoroutineScope that should be used to execute any suspendable...
Read more >Kotlin Coroutines 1.5: GlobalScope Marked as Delicate ...
In top-level code, when launching a concurrent operation from a non-suspending context, an appropriately confined instance of CoroutineScope ...
Read more >How to call a reactor function from a coroutine context?
At first glance, we do not see bridging methods in kotlinx-coroutines-reactor to await from a Flux . But:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sdeleuze It makes total sense. They seem to fit conceptually. We can have
Context.asCoroutineContext
extension, so that you can mix it into the coroutine context, implementReactorContext: CoroutineContext.Key
, so that you can retrieve it back viacoroutineContext[ReactorContext]
, and we can have all the reactor builders automatically extract the rector context from their coroutine context and pass it on. I’m open to PR.Thx for the reply.
seems to be just the wrong way.
did the trick. Again thanks for the support.