How to switchMap Flow like LiveData
google recommend to use kotlin flow.
when we use livedata, we can use liveData.switchMap to remove observe, then call other api request.
but Flow just use collect or launchIn, If we take 2 api request, but the first request is timeout, how to ensure we just receive the second api request result?