Presumably because the code predates Java 8, we have an implementation of a "Future that we already know the value for" in pipeline.FutureSupport. It's equivalent, I believe, to the now JDK-supplied CompletableFuture.completedFuture and we should use that instead even if it's perhaps a tiny bit slower.
Guava also has an equivalent, but let's use the JDK when we can.
Presumably because the code predates Java 8, we have an implementation of a "Future that we already know the value for" in
pipeline.FutureSupport
. It's equivalent, I believe, to the now JDK-suppliedCompletableFuture.completedFuture
and we should use that instead even if it's perhaps a tiny bit slower.Guava also has an equivalent, but let's use the JDK when we can.