corda / net.corda.core / rx.Observable

Extensions for rx.Observable

bufferUntilSubscribed fun <T> Observable<T>.bufferUntilSubscribed(): Observable<T>

Returns an Observable that buffers events until subscribed.

toFuture fun <T> Observable<T>.toFuture(): ListenableFuture<T>

Returns a ListenableFuture 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.