Skip to content

muttalipkucuk/education-java-se-8-java.util.concurrent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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