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

getOrThrow

fun <T> Future<T>.getOrThrow(): T

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