Observable - converting 2 promises into an observable
问题 I have a popular scenario where I need to create one promise that returns data which is fed to a second promise. If the first promise fails, I need to cancel the second promise. In 'Promise' land it would look something like this: Fn1.doPromise( initialData ) .then(info => { Fn2.doPromise( info ) .then(result => { //success - return result }) .catch(error => { //error }); }) .catch(error => { //cancel 2nd promise and show error }); Now I am trying to learn the best way to do this using