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

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