track
fun <S : Any, T : AutoRunnerObservable<V>, V> track(underlyingObservable: S, getObservable: () -> T): FrozenAutoRunnerObservable<V, T>
Tracks an arbitrary observable.
This creates a new AutoRunnerObservable if one doesn't already exist for the underlyingObservable. Otherwise it reuses the existing AutoRunnerObservable.
Return
The instantiated AutoRunnerObservable of type T.
Parameters
underlyingObservable
The raw, underlying observable (e.g. Android's LiveData
).
getObservable
Used to create an AutoRunnerObservable wrapper around underlyingObservable.