Resilience4j returning a CompletableFuture around tried method with parameter
问题 I can't find out how to wrap a synchronous method with Resilience4j so that it returns a CompletableFuture, although this seems to be part of Resilience4j's target area. Especially since the synchronous method I want to wrap can throw an Exception. What I want in pseudo code: boolean void syncMethod(Parameter param) throws Exception { // May throw Exception due to connection/authorization problems. } CompletableFuture<Boolean> asyncResilience4jWrapper() { CompletableFuture<Boolean> result = .