DIResolver

A special Resolver which allows looking up dependencies from a DI graph.

This interface only exists to prevent derived lambdas from having access to the DI graph.

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard
abstract val DI: DIImpl
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

fun <T> Resolver.get(data: WhileUsed<T>): T

Returns WhileUsed's value and keeps it alive as long as it's still used.

fun <T> Resolver.get(data: StateFlow<T>): T

Returns StateFlow.value and tracks the observable (on the MainScope).

Link copied to clipboard
abstract fun <S : Any, T : AutoRunnerObservable<V>, V> track(underlyingObservable: S, getObservable: () -> T): FrozenAutoRunnerObservable<V, T>