我可以通过以下方式轻松链接coroutine
Flow
s:
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
(成功时返回的值)的值重试。
最好的方法是什么?