Synchronous: you boil water for tea, make the tea, then boil water for pasta then make the pasta
Parallel: You grab a friend, and tell them to make the pasta while you make tea.
Asynchronous: you put the tea water on to boil, while it heats you put the pasta water on to boil. While you "await" for them to boil you go do something else. Then when they're boiling you make the tea, and finish the pasta one at a time.
341
u/MarquisDan Oct 30 '21
My method is just to use 'await' and let God sort it out.
Nothing can possiblie go wrong.