4 ms·
I find async/await to be much better for conditional execution, especially with lots of branches. For example, I had a scenario where I tried one async call and
by saosebastiao 9y ago
I find async/await to be much better for conditional execution, especially with lots of branches. For example, I had a scenario where I tried one async call and if it didn't have the information I needed, I had to make two subsequent async calls to get the information I needed before proceeding with the final call. Monadic composition was a nightmare where async/await was perfectly suited to the task.