i want to use it like flowOf<Int>().onEmpty{...
# coroutines
i want to use it like flowOf<Int>().onEmpty{ emit(0) }, sth like this
You can do an action when it is empty like that, but you can’t emit another value over a finished Flow.
it’s fine here, because his onEmpty is actually creating a new flow wrapping around the upstream one (rather than firing on an event, like onComplete)