corda / net.corda.core / java.util.concurrent.Future

Extensions for java.util.concurrent.Future

getOrThrow fun <T> Future<T>.getOrThrow(timeout: Duration? = null): T

Same as Future.get but with a more descriptive name, and doesn't throw ExecutionException, instead throwing its cause