From https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html It shows CompletableFuture has the following thenX methods:
thenAccept(Consumer<? super T> action)
thenApply(Function<? super T,? extends U> fn)
thenRun(Runnable action)
I'm wondering what to do if I want to append a supplier (does not accept parameter but returns value) to a callback chain made by CompletableFuture?
Aucun commentaire:
Enregistrer un commentaire