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

(Retry) documentation out of date #2099

Open
MichielDx opened this issue Jan 23, 2024 · 1 comment
Open

(Retry) documentation out of date #2099

MichielDx opened this issue Jan 23, 2024 · 1 comment

Comments

@MichielDx
Copy link

Resilience4j version: 2.0.0+

Java version: 17

In the Retry docs following returns a CheckedFunction0, but in reality it returns a CheckedSupplier, which Try.of does not consume:
CheckedFunction0<String> retryableSupplier = Retry.decorateCheckedSupplier(retry, helloWorldService::sayHelloWorld);

By looking around I found the resilience4j-vavr maven dependency, which contains VavrRetry.decorateCheckedSupplier.

https://resilience4j.readme.io/v2.0.0/docs/retry

@PrzemekLewandowski
Copy link

Thanks for the hint, I've been struggling with this too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants