mutableProvider

fun <T> mutableProvider(initialValue: T): MutableProvider<T>

Creates a new MutableProvider with the given initialValue.


fun <T> mutableProvider(lazyValue: () -> T): MutableProvider<T>

Creates a new MutableProvider that loads its value using the given lazyValue function. lazyValue should be a pure function.


fun <T> mutableProvider(lazyValue: () -> T, setValue: (T) -> Unit = {}): MutableProvider<T>

Creates a new MutableProvider that loads its value using the given lazyValue function and sets it using the given setValue function. lazyValue should be a pure function.