Skip to content

Latest commit

 

History

History
32 lines (12 loc) · 712 Bytes

File metadata and controls

32 lines (12 loc) · 712 Bytes

https://examples.javacodegeeks.com/core-java/util/concurrent/completablefuture/java-completionstage-completablefuture-example/

http://millross-consultants.com/completion-stage-future-introduction.html

Interface CompletionStage

Interface Future

Class CompletableFuture implements Future, CompletionStage

CompletableFuture supplyAsync() API

public static CompletableFuture supplyAsync(Supplier supplier) public static CompletableFuture supplyAsync(Supplier supplier, Executor executor)

CompletableFuture runAsync() API

public static CompletableFuture runAsync(Runnable runnable) public static CompletableFuture runAsync(Runnable runnable, Executor executor)

The thenApply Method