r/learnjavascript • • May 01 '20

Async vs. Sync

Post image
413 Upvotes

81 comments sorted by

View all comments

9

u/zbluebirdz May 01 '20

If you had each task dependent on the previous task's results/outcome, can you still run it in Asynchronous mode?

2

u/golovatuy May 01 '20

if you have dependency you have to wait task results. Use async/await or Promise for dependent tasks for asynchronous mode.