The way this site explains it, synchronous code makes the current code wait for the function you called to return. Asynchronous functions are called, but the current code just continues after it starts the function.
What I don't understand is why they use them the way they do. I'm pretty sure synchronous means something about more than one thing being in sync.
("occurring or existing at the same time or having the same period or phase" from google's definition.)
Asynchronous is just the opposite, then, meaning more than one thing not being in sync.
("not occurring or existing at the same time or having the same period or phase ".)
So, if synchronous code has to wait for a return, that means that the current code and the called function are not executing at the same time, and therefore not synchronous, right?
And if asynchronous code doesn't wait for a return, that means the current code and the called function are executing at the same time, and not asynchornous.
I don't get it.
If someone has some better way of explaining it that makes their definitions make sense, I'd appreciate it.
It seems to me that they just used those words backwards to confuse people while they're explaining threads.














