Skip to content

//reactivestate-core/com.ensody.reactivestate/Resolver

Resolver

[common]\ class Resolver(val autoRunner: BaseAutoRunner, val once: Boolean = false)

Tracks observables for AutoRunner and CoAutoRunner.

Constructors

Resolver [common]
constructor(autoRunner: BaseAutoRunner, once: Boolean = false)

Properties

Name Summary
autoRunner [common]
val autoRunner: BaseAutoRunner
once [common]
val once: Boolean = false

Functions

Name Summary
get [common]
fun <T> Resolver.get(data: WhileUsed<T>): T
Returns WhileUsed’s value and keeps it alive as long as it’s still used.
[common]
fun <T> Resolver.get(data: StateFlow<T>): T
Returns StateFlow.value and tracks the observable (on the MainScope).
track [common]
fun <S : Any, T : AutoRunnerObservable<V>, V> track(underlyingObservable: S, getObservable: () -> T): FrozenAutoRunnerObservable<V, T>
Tracks an arbitrary observable.