map

fun <V, W> CordaFuture<out V>.map(transform: (V) -> W): CordaFuture<W>

Returns a future that will have an outcome of applying the given transform to this future's value. But if this future fails, the transform is not invoked and the returned future becomes done with the same throwable.