flowOf

fun <T> flowOf(vararg elements: T): Flow<T> (source)

Creates a flow that produces values from the given array of elements.

fun <T> flowOf(value: T): Flow<T> (source)

Creates flow that produces a given value.