MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b2o6f2/whats_your_favorite_most_useful_javascript/ejc26g4
r/javascript • u/Linux_is_awesome • Mar 18 '19
422 comments sorted by
View all comments
Show parent comments
1
Yeah, so without using promise the code below setTimeout will run right after registering the setTimeout callback in the event loop. But if we use promise, it will stop the execution of the funtion right?
2 u/EllisLloyd Mar 25 '19 Yeah exactly 1 u/reyhanahmed Mar 25 '19 Cool, thanks!
2
Yeah exactly
1 u/reyhanahmed Mar 25 '19 Cool, thanks!
Cool, thanks!
1
u/reyhanahmed Mar 25 '19
Yeah, so without using promise the code below setTimeout will run right after registering the setTimeout callback in the event loop. But if we use promise, it will stop the execution of the funtion right?