4 ms·
Wait, but JavaScript only had async/await added recently too, with ES6 ? (Or was that "just" about an easier way to use these features?)! EDIT: Argh, double po
by BlueTemplar 5y ago
Wait, but JavaScript only had async/await added recently too, with ES6 ? (Or was that "just" about an easier way to use these features?)!
EDIT: Argh, double posting, did I hit "back" by mistake ?
- sammorrowdrums 5y agoThey are effectively sugar on JS promises which are effectively sugar around async event callbacks. This is why node rose so quickly in popularity as a server. The async IO handling could be leveraged with callbacks to scale low number of processes to handle large number of requests. Plus easy to learn and lots of people knew some JS. JS always had an event loop (in browser so async events work) and in nodeJS it can be used for async IO. So JS has basically always handled async of sorts (although that has improved significantly).