最佳答案
Java 8 introduces CompletableFuture
, a new implementation of Future that is composable (includes a bunch of thenXxx methods). I'd like to use this exclusively, but many of the libraries I want to use return only non-composable Future
instances.
Is there a way to wrap up a returned Future
instances inside of a CompleteableFuture
so that I can compose it?