-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Allow using Kotlin Flow for SSE #18201
Labels
Milestone
Comments
/cc @evanchooly |
This would be a nice enhancement for RESTEasy Reactive. Do you want to look into it @evanchooly or should I? |
+1 |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Jun 29, 2021
This part introduces support: #18222 It's a good start, but will certainly need more community testing when / if it gets in |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Jul 2, 2021
geoand
added a commit
that referenced
this issue
Jul 5, 2021
Introduce support for Kotlin Flow as return type in RESTEasy Reactive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
At the moment in Quarkus it is possible to use Mutiny Multi with the annotation @RestSseElementType to create an endpoint sending events to the client as they are created.
Like so:
Since Quarkus 2.0.0 it is possible to use Kotlin Coroutines with a suspend function for single request.
Support for Kotlin Flow for SSE would be a welcome addition.
Something like the following code snippet:
At the moment when using the above code the request returns immediately with a 200 but no values.
The text was updated successfully, but these errors were encountered: