Consider the following situation: I have two async...
# rx
u
Consider the following situation: I have two async operations, each of which can return either error or success signal. I’m expecting a success signal only from one of the operations, though I don’t know prior to these operations from which one. So, there are two scenarios that are possible here: 1) one of the operations succeeds, then the other one fails; 2) or — worst case scenario —both operations fails. My first guess was to try
zip()
operator, but I find it difficult to handle those error cases which result in a terminate state.