mountSimple
inline fun <T> mountSimple(parentJob: Job, upstream: Flow<T>, crossinline collect: suspend (T) -> Unit)
collects the values of a given Flow one by one. Use this for data-types that represent a single (simple or complex) value.
Parameters
parentJob
parent Job for starting a new coroutine
upstream
returns the Flow that should be mounted at this point
collect
function which getting called when values are changing (rerender)