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

Extensions for java.util.concurrent.Future

match

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

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