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

match

fun <V, W> Future<V>.match(success: (V) -> W, failure: (Throwable) -> W): W

Invoke getOrThrow and pass the value/throwable to success/failure respectively.