then

abstract fun <W> then(callback: (CordaFuture<V>) -> W)

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.