I am new to Javascript and Asynchronous programing.
I have learnt that
- 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. - Asyncrhonous functions are blocking, only their callbacks are non-blocking
How to identify an Asynchronous function in Javascript ? and do "Asynchronous execution, non-blocking execution, execution context put in message queue" mean the same in Javascript ?
Please do point out if my learnings include misfacts
Note : I know about a similar question What makes a JavaScript function asynchronous?, but the answers explain the mechanism and not "How to identify an Asynchronous function ?"