-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
CircuitBreaker incompatible with SpringBoot 3.2 + Kotlin suspend functions #2140
Comments
malaquf
changed the title
CircuitBreaker incompatible with SpringBoot 3.2 + kotlin suspend functions
CircuitBreaker incompatible with SpringBoot 3.2 + Kotlin suspend functions
Mar 25, 2024
In case someone else needs it, this is how I workaround it at the moment:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resilience4j version: 2.2.0
Hello!
On this commit, Spring introduced support for AOP with Kotlin coroutines.
In this case, if it detects a kotlin suspend function, it wraps the execution in a Mono.
As a result, this implementation, for example, does not work as expected, as the result is not yet resolved.
This could probably be resolved by detecting the Mono and resolving it during block() execution, but I assume other parts of the lib also need adjustments.
Thank you.
The text was updated successfully, but these errors were encountered: