Emit a (loading) value from a Flow if it has not emitted any values after some time

I have a repository that returns Flow<Status\<T\>>. Status can be Status.Loading or Status.Data. I would like the Flow to emit Status.Loading in case the repository has not yet returned...

Stack Overflow