This is a one way mapping. If you used to use Guava futures, you probably want to do the java 8 equivalent. This does not mean that the reverse mapping works.
Guava style | Java 8 style |
---|---|
Listenablefuture.addListener(callback) |
future.whenComplete(callback) |
Futures.addCallback(callback) |
[future.whenComplete(callback) ](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletionStage.html#whenComplete-java.ut |