I am new to Javascript and Ascynchronous programming, and a few things confuse me, please point out the misfacts in my learning.
- Callbacks of an Asynchronous function are put in a message queue and
executed via event loop.
- Asynchronous execution is non-blocking, done
via event loop.
- Functions like
setTimeout
are asynchronous.
- Asynchronous functions are blocking, only their callbacks are
non-blocking.
If any of the above are wrong, please elaborate it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…