4 ms·
I really wish when things moved to async/await, that they would have gotten rid of promises like I proposed here: https://es.discourse.group/t/callback-based-si
by BenoitEssiambre 5y ago
I really wish when things moved to async/await, that they would have gotten rid of promises like I proposed here: https://es.discourse.group/t/callback-based-simplified-async-await/343 https://es.discourse.group/t/callback-based-simplified-async...
As it stands it's layers of caching, state machines and complexity.
- Sephr 5y agoYour proposal seems very reminiscent of the generator-based JavaScript async library I created back in 2010: https://eligrey.com/blog/pausing-javascript-with-async-js/ https://eligrey.com/blog/pausing-javascript-with-async-js/
- Oddskar 5y agoIt's building on top of something that developers should be using anyway; or at least have familiarity with. I'm quite glad they ended up going this route for that reason.