-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Suspendable ServerRequestFilter in Resteasy Reactive #19013
Comments
This is certainly interesting (and I'll likely implement it for Quarkus 2.3), but may I ask what you plan to do in the filter that requires it to be a suspending function? |
I am planning to call a suspend function in a service. The suspend function in the service makes an asynchronous request (a database call or a rest request). In addition, it is already possible to return a Maybe it would be a good idea to support suspendable functions where |
Yeah, we can certainly do that. But it will likely be a |
@geoand Ist there any chance that this will be in 2.4? |
I'd say chances are slim, but it could happen. |
#20529 introduces this feature |
Allow suspend functions as to be uses as custom filters
Description
The following return types are currently possible in Resteasy Reactive Filters (
@ServerRequestFilter
):void
,Response
,RestResponse
,Optional<Response>
,Optional<RestResponse>
,Uni <Void>
,Uni<RestResponse>
orUni <Response>
.Please add support for suspendable filters (Kotlin Coroutines).
Example
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: