Package-level declarations
Types
Unless you really want this particular implementation, use openFuture to make one.
A CordaFuture with additional methods to complete it with a value, exception or the outcome of another future.
The contravariant members of OpenFuture.
Functions
When this future is done and the outcome is failure, log the throwable.
Wrap a CompletableFuture, for example one that was returned by some API.
Returns a future that will also apply the passed closure when it completes.
Returns a future that will also apply the passed closure on an error.
Returns a future that will have the same outcome as the future returned by the given transform. But if this future or the transform fails, the returned future's outcome is the same throwable. In the case where this future fails, the transform is not invoked.
Returns a future that will have an outcome of applying the given transform to this future's value. But if this future fails, the transform is not invoked and the returned future becomes done with the same throwable.
Returns a future that will map an error thrown using the provided transform function.
If all of the given futures succeed, the returned future's outcome is a list of all their values. The values are in the same order as the futures in the collection, not the order of completion. If at least one given future fails, the returned future's outcome is the first throwable that was thrown. Any subsequent throwables are added to the first one as suppressed throwables, in the order they are thrown. If no futures were given, the returned future has an immediate outcome of empty list. Otherwise the returned future does not have an outcome until all given futures have an outcome. Unlike Guava's Futures.allAsList, this method never hides failures/hangs subsequent to the first failure.