indefinitelyRepeat

fun <T> indefinitelyRepeat(item: T): Flow<T>

Creates an infinite Flow that repeatedly emits the provided item.

Return

An infinite Flow that repeatedly emits the provided item.

Parameters

item

The item to be repeatedly emitted by the flow.