i want to use it like flowOf<Int>().onEmpty{...
# coroutines
m
i want to use it like flowOf<Int>().onEmpty{ emit(0) }, sth like this
s
You can do an action when it is empty like that, but you can’t emit another value over a finished Flow.
a
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)