set

fun set(value: T)(source)

Replaces the value. Prefer update when the new value depends on the current one. Like MutableStateFlow, equal values are conflated and not re-emitted.