mountSingle

fun <T> mountSingle(parentJob: Job, upstream: Flow<T>, set: suspend (T, 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

set

function which getting called when values are changing (rerender)

upstream

returns the Flow that should be mounted at this point