r/learnjavascript • • May 01 '20

Async vs. Sync

Post image
413 Upvotes

81 comments sorted by

View all comments

75

u/ramsncardsfan7 May 01 '20 edited May 01 '20

This is only one specific perspective that could be misleading. You can have the same graph using only asynchronous calls. On the left you could have synchronous asynchronous (one promise after another) and on the right you could have asynchronous asynchronous (Promise.all).

What I’m trying to say is that just because your calls are asynchronous doesn’t mean they are happening at the same time. You have to do that purposefully.

0

u/[deleted] May 01 '20

[deleted]

2

u/u1g0ku May 02 '20

I came here to write this point.
I learned this after I started to use threads in java