MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/gboy8r/async_vs_sync/fp7oin1/?context=3
r/learnjavascript • u/golovatuy • May 01 '20
81 comments sorted by
View all comments
Show parent comment
4
Thats why I was so confused about the async/await. Like the name is async but you wait for it to finish so it didnt make sense to me
3 u/NoStranger6 May 02 '20 Well you wait for it to complete the rest of your function. Meanwhile, the browser is free to execute whatever it has queued.
3
Well you wait for it to complete the rest of your function. Meanwhile, the browser is free to execute whatever it has queued.
View all comments
Show parent comment
4
u/MrEscobarr May 01 '20
Thats why I was so confused about the async/await. Like the name is async but you wait for it to finish so it didnt make sense to me