observe

open override fun observe(onNext: (R?) -> Unit): Disposable

Adds an observing function to the Observable to be notified on each change to the observable. If there is a current value, there will be an immediate notification

Return

Disposable that removes the observing function when disposed

Parameters

onNext

Function to be called each time the value of the Observable changes