Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore Kotlin coroutine as an operator extension #1103

Closed
smaldini opened this issue Mar 1, 2018 · 3 comments
Closed

Explore Kotlin coroutine as an operator extension #1103

smaldini opened this issue Mar 1, 2018 · 3 comments
Assignees
Labels
area/kotlin This belongs to the kotlin theme status/declined We feel we shouldn't currently apply this change/suggestion

Comments

@smaldini
Copy link
Contributor

smaldini commented Mar 1, 2018

Coroutine makes non blocking programming more progressive for some users. It would be great to explore a way to use an extension that offer direct support to implement a Reactor Operator as a coroutine, an alternative to Flux.create, flatMap(data -> Flux.create(s -> /*...*/)) and subscribe.

More over an extension to blockXxx() as suspend getXxx() could be interesting for Flux/ Mono.block.

@smaldini smaldini added the area/kotlin This belongs to the kotlin theme label Mar 1, 2018
@smaldini smaldini added this to the 3.2.0.RELEASE milestone Mar 1, 2018
@akarnokd
Copy link
Contributor

akarnokd commented Mar 1, 2018

@sdeleuze
Copy link
Contributor

Thanks for the link @akarnokd. https://github.com/Kotlin/kotlinx.coroutines/blob/master/reactive/coroutines-guide-reactive.md#operators could also be interesting.

I am also wondering if we could bridge CoroutineContext and Reactor Context, see Kotlin/kotlinx.coroutines#284.

@smaldini
Copy link
Contributor Author

Should move discussion to reactor-addons (see #1658) if required but as of now we don't need it as a core extension

@simonbasle simonbasle added the status/declined We feel we shouldn't currently apply this change/suggestion label Apr 19, 2019
@simonbasle simonbasle removed this from the Backlog milestone Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kotlin This belongs to the kotlin theme status/declined We feel we shouldn't currently apply this change/suggestion
Projects
None yet
Development

No branches or pull requests

4 participants