User Tools

Site Tools


java:futures

This is an old revision of the document!


Futures

Java has 2 main Future implementations: CompletableFuture and FutureTask. They both implement the Future interface. Additionally ForkJoinTask implements Future but this is less managable.

CompletableFuture

CompletableFuture is a full featured Future implementation, capable of chaining and joining. However, its main weakness is that cancellation doesn't stop the underlying computation, and interruption is not supported.

java/futures.1781805464.txt.gz · Last modified: by carl