constant

fun <R> constant(value: R): NonSuspendCollector<Any?, R>

Returns always the same value, regardless of the collected flow.

Parameters

value

Value returns as result of the collection.