DEV Community

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

Collapse
 
dance2die profile image
Sung M. Kim • Edited

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 😎.

Collapse
 
lenaggar profile image
Mahmoud ElNaggar

I completely agree .. I can orchestrate the chains of thens in a Promise however it makes it more readable for me

Collapse
 
ben profile image
Ben Halpern

Yes, agreed.

Collapse
 
razvanilin profile image
Razvan Ilin

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

Collapse
 
wormss profile image
WORMSS

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