Nice and concise, thanks! What are some of the scenarios practically that we would not want blocking and would opt for async programming? I imagine sections of code that are self-contained and separate from the rest of the program are ideal candidates for being async. Also what dictates how many async operations can be run simultaneously??
4 responses to “Javascript Asynchronous Vs Synchronous”
Nice and precise. The only thing i didn't understand is your callBack. In longRun parameter you are using callBack as a associative array like in php.
hey great video! just one tip…. please enlarge the code next time similar to terminal. cheers!
Nice and concise, thanks! What are some of the scenarios practically that we would not want blocking and would opt for async programming? I imagine sections of code that are self-contained and separate from the rest of the program are ideal candidates for being async. Also what dictates how many async operations can be run simultaneously??
Thank you 🙂