asFlow

@FlowPreview fun <T> (() -> T).asFlow(): Flow<T> (source)

Creates a flow that produces a single value from the given functional type.