Package-level declarations

Functions

Link copied to clipboard
inline suspend fun awaitSnapshotCondition(crossinline condition: () -> Boolean)

Suspends until condition evaluates to true.

Link copied to clipboard
fun <T> CollectFromFlow(flow: Flow<T>, key1: Any? = null, key2: Any? = null, collector: FlowCollector<T>)

Collect from flow and emit values into collector, whilst relaunching the collection upon flow, key1 or key2 changing.

Link copied to clipboard
fun <T> CollectLatestFromFlow(flow: Flow<T>, key1: Any? = null, key2: Any? = null, action: suspend (T) -> Unit)

Collect latest from flow with given action, whilst relaunching the collection upon flow, key1 or key2 changing.

Link copied to clipboard
fun <T> OnChange(value: T, key1: Any? = null, key2: Any? = null, callback: suspend (T) -> Unit)

Runs callback whenever value or one of the optional keys changes.

Link copied to clipboard
fun OnDispose(callback: () -> Unit)

Executes callback when the current composition leaves the composition.

Link copied to clipboard

Converts this Map to a SnapshotStateMap.

Link copied to clipboard