python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Exception handling for CompletatbleFuture<Void> when used with Spring's Async
I am quite new to this completable future concept. I am using Spring's async annotation and for this I have added a file configuration for executor and exception handler as follows:
@Override
public E...
Shiuli
Votes: 0
Answers: 1
How to mock a CompletableFuture in Kotlin
We have some code to read data from DynamoDB:
suspend fun getKeys(owner: String): Set<String> {
...
val query = ...
query.subscribe { page -> foo(page) }.await()
return ...
}
...
Deqing
Votes: 0
Answers: 1
Java's CompletableFuture : time of ExecutionException
When working with CompletableFuture any potential errors from computing the value are exposed via the get() method throwing an ExecutionException. I can of course log this exception at the time of cal...
peterh
Votes: 0
Answers: 2
Intermittent unit test failure due to CompletableFuture.thenAccept not running
I have a method that collects data from multiple factories using CompletableFuture.supplyAsync like below
@RunWith(MockitoJUnitRunner.StrictStubs.class)
public class TestThenApply {
@Mock private...
Siddhesh
Votes: 0
Answers: 1