LaunchedImpressionEffect

fun LaunchedImpressionEffect(vararg inputs: Any?, impression: suspend () -> Unit)(source)

A LaunchedEffect that will run a suspendable impression. The impression will run once until it is forgotten based on the RetainedStateRegistry, and/or until the inputs change. This is useful for async single fire side effects like logging or analytics.

Parameters

inputs

A set of inputs that when changed will cause the impression to be re-run.

impression

The impression side effect to run.