Handling concurrency and asynchronous JavaScript

from blog Oliver Caldwell's blog, | ↗ original
If you’ve worked with JavaScript in a browser, or indeed on the server, for any length of time you’ve probably had to deal with asynchronous spaghetti. This kind of spaghetti is not delicious in any way, shape or form. You end up with multiple boolean variables and function calls constantly checking if all of those AJAX requests have finished; it...