corda / net.corda.core.concurrent / CordaFuture / then

then

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

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.