Open Future
A CordaFuture with additional methods to complete it with a value, exception or the outcome of another future.
Inheritors
Functions
When this future is done and the outcome is failure, log the throwable.
When the given future has an outcome, make this future have the same outcome.
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.
Same as Future.get except that the ExecutionException is unwrapped.
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.
Run the given callback when this future is done, on the completion thread. If the completion thread is problematic for you e.g. deadlock, you can submit to an executor manually. If callback fails, its throwable is logged.