An open API service indexing awesome lists of open source software.

https://github.com/muttalipkucuk/education-java-se-8-java.util.concurrent

Examples with package java.util.concurrent
https://github.com/muttalipkucuk/education-java-se-8-java.util.concurrent

completablefuture completionstage concurrency future java-8 java-se

Last synced: 2 months ago
JSON representation

Examples with package java.util.concurrent

Awesome Lists containing this project

README

          

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