RuntimeObservation

Collects snapshot-state reads and exposes their later invalidations.

Functions

Link copied to clipboard
fun <T> observeReads(onInvalidated: () -> Unit, block: () -> T): Pair<T, Observation>

Runs block and collects every observable state read on the current thread.