-
Notifications
You must be signed in to change notification settings - Fork 129
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
Mutiny integration with Kotlin Coroutines #403
Comments
There is no specific integration. Do you have any use-case? |
With Vertx there is the ability to run vertx code in the Coroutines scope as below :
Is it possible to achieve something similar ? |
This has to be investigated |
You can convert a Uni to a |
Hey people, Where would be the right place for providing utility functions on Uni and Multi but also other Quarkus or even Vert.x types to make a Kotlin native developer experience by writing imperative (coroutine) code? Obvious cases are:
Are these cases worth an own library, project by project? Or could it be part of the Quarkus Kotlin extension? |
For the 2 first items, we should be able to create a module in mutiny directly. For the last one, it would be in the Quarkus extension (not sure which one). |
Would love to start or contribute to a How to organize this - since hopefully others will support too (@imrabti ?)? Just create a fork open to write for everyone? Since that new modul would give a good dependency for quarkus-kotlin, we can have a look to that afterwards. |
@heubeck Just create a fork and a PR opened to everyone. |
With PR #419 I'd like to implement the following "extensions":
Name of the functions is subject for discussion. Please have a look in the PR for details and of cause reviews. |
I like the names! |
Had a talk with @bartwinski who suggested to use Flows instead of Channels (thanks for the hint). Haven't worked with Flows yet but from the documentation they sounding much more like Multi / Reactive Streams than Channels which are more like a technique to communicate between coroutines. Since I'm struggling with overflow issus in the Multi.asChannel implementation and Flows seem to solve buffering different, I'll change to Flow. |
PR #419 is now ready for review. |
@imrabti @bartwinski |
Is it possible to use Mutiny with Kotlin Coroutines ?
The text was updated successfully, but these errors were encountered: