re: Visual Studio Code can now convert your long chains of Promise.then()'s into async/await automagically VIEW POST

VIEW FULL DISCUSSION
 

I'm curious about whether I'd actually make use of something like this

async/await sometimes looks less readable than promise.then counter-part.

So one can use it when async/await version makes it more readable 😎.

 
 

I agree with this completely. I tried refactoring my code to async/await because it was the new thing, but I ended up sticking with promises because the code was much cleaner

 

It's very useful when you have if's especially if you have conditional diamond forks.

code of conduct - report abuse