我可以通过以下方式轻松链接coroutine Flows:
val someFlow = flow { //Some logic that my succeed or throw error }
val anotherFlow = flow { // Another logic that my succeed or throe error }
val resultingFlow = someFlow.flatmapLatest(anotherFlow)
但是如果我想单独重试someFlow,anotherFlow如果someFlow已经成功返回一个值但anotherFlow失败了,我想anotherFlow通过使用来自someFlow(成功时返回的值)的值重试。
最好的方法是什么?