subscribeOnce

open fun subscribeOnce(observer: Observer<T>): Disposable

Subscribes the given observer to a single emission of the source.


open fun subscribeOnce(onNext: Consumer<T>): Disposable

Subscribes the given onNext to a single emission of the source.