toFuture

fun <T> <Error class: unknown class><T>.toFuture(): CordaFuture<T>

Returns a CordaFuture bound to the first item emitted by this Observable. The future will complete with a NoSuchElementException if no items are emitted or any other error thrown by the Observable. If it's cancelled then it will unsubscribe from the observable.