Closed
Description
Nikolay Georgiev opened SPR-15401 and commented
When calling Async methods that have result composed of CompletableFutures Spring blocks the thread execution by calling get() method internally. This breaks the non-blocking nature of CompletableFuture and makes the use of CompletableFuture composition unusable. More details in the StackOverflow question provided.
Reference URL: https://stackoverflow.com/questions/43095014/nested-async-calls-in-spring
Issue Links:
- Support CompletableFuture as return value in @MessageMapping handlers [SPR-12207] #16821 Support CompletableFuture as return value in
@MessageMapping
handlers - Consistently support CompletionStage next to CompletableFuture [SPR-15258] #19823 Consistently support CompletionStage next to CompletableFuture