Top "Completable-future" questions

In Java 8, a Future that may be explicitly completed (setting its value and status), and may include dependent functions and actions that trigger upon its completion.

How can I test exception in completable future?

I have been converting some code to be asynchronous. The original unit test used the annotation @Test(expected = MyExcpetion.class) …

java junit java-8 junit4 completable-future
How do I get a CompletableFuture<T> from an Async Http Client request?

On Async Http Client documentation I see how to get a Future<Response> as the result of an …

asynchronous java-8 asynchttpclient completable-future
How to retain slf4j MDC logging context in CompletableFuture?

When executing async CompletableFuture, the parent threadcontext and moreover the org.slf4j.MDC context is lost. This is bad …

java slf4j completable-future mdc
In which thread does CompletableFuture's completion handlers execute in?

I have a question about CompletableFuture method: public <U> CompletableFuture<U> thenApply(Function<? super T, ? …

java multithreading completable-future forkjoinpool
Cancel task on timeout in RxJava

I'm experimenting with RxJava and Java 8's CompletableFuture class and do not quite get how to handle timeout conditions. import …

java future rx-java completable-future
ExecutorService vs CompletableFuture

I have been trying to implement an asynchronous process, where the parent method calls a child method which would in-turn …

java asynchronous java-8 executorservice completable-future
How to complete a CompletableFuture<Void>?

I want a CompletableFuture that only signals the completion (e.g. I don't have a return value). I can instantiate …

java completable-future
Java CompletableFuture.complete() block

I have a problem when using CompletableFuture in java. I have 2 select requests those are filled when receiving responses from …

java multithreading future reactor completable-future
Java collecting results of CompletableFuture from multiple calls

I have to run multiple external call operations and then obtain the result in a form of list. I decided …

java multithreading completable-future