I have a list of objects (from model class Name) that I want to process using an async method. The async method will take each Name object in the list ...
I have a list of objects (from model class Name) that I want to process using an async method. The async method will take each Name object in the list ...
I have a requirement where in I need to call 2 apis for 100 users. First API is an oauth api to generate token which takes 2 seconds and the Second ca ...
I am trying to wait for processor.processFiles() to complete, the method returns void and it is an @Async method. The busy wait logic does not cause t ...
This is one of my first posts, please forgive me if it is not formatted properly or giving the correct information, but I have been searching for the ...
. Answers to this question are eligible for a +250 reputation bounty. P ...
I want to return an autocloseable object inside a CompletableFuture and use it in whenComplete without going to close it manually later. This is the ...
When the method is called by @EventListener(ApplicationReadyEvent.class), the expected behavior eventually occurs. But when a direct method call occur ...
I am trying to implement multi threading in my Spring Boot app. I am just beginner on multi threading in Java and after making some search and reading ...
I need to call a method with different input parameters (like id) asynchronously, the method returns true or false, and the false output is not desira ...
I have N tasks to execute, and the number of tasks is not fixed. The next task can only be executed after the previous task is completed. How can the ...
I want a way to handle timeouts(custom value) for completable futures where we can assign a default value to the future object if there is a timeout. ...
My task is to load file asynchronously using ExecutiveService & CompletableFuture, and to measure execution time for 2, 4, 8 threads and without p ...
I have the following scenario: I set up a client which sends an aynchronous HTTP reuqest to the server. The client receives a CompletableFuture. So fa ...
My new team is writing a Java gRPC service and to ensure that we never block the request thread we ended-up wrapping more or less ALL methods inside a ...
How do I implement a function in Kotlin for below method signature. I am facing issues getting the syntax correct. ...
I'm running two instances of CompletableFuture, which wait 1 second and print something to the console. The first one I interrupt after 0.5 seconds. S ...
Trying to compare implementations of futures vs completed futures and check if the non blocking nature of completable futures is a better use case for ...
I want to call async rest endpoints with Feign client and have done the below changes. When calling it the CompletableFuture.get() doesn't complete. ...
I am writing Junit test for a Class in which CompletableFuture is implemented. I am trying to mock this piece of code but the test gets stuck infinite ...
I have a strange issue. Given this code: By calling getCurrentApplicationUser() i´m acessing spring´s SecurityContextHolder.getContext().getAuthent ...