startWith

fun <T> Flow<T>.startWith(value: T): Flow<T>

Emits value before the upstream values.

The value is emitted once per collection, before the upstream is collected.


fun <T> Flow<T>.startWith(vararg values: T): Flow<T>

Emits values in order before the upstream values.

The values are emitted once per collection, before the upstream is collected.