3 ms·
Well, async/await in languages is just promises/futures made to look like regular flow control via state machines. And promises are controlled via callbacks, wh
by torginus 2y ago
Well, async/await in languages is just promises/futures made to look like regular flow control via state machines. And promises are controlled via callbacks, which are called from some event.
It's essentially the same thing as when you get an interrupt from your microcontroller's DMA engine that the ring buffer needs to be refilled, just with 2 layers of abstractions on top to make it look nicer.
- yencabulator 2y agoSo you agree this to be wrong, then.. > Asynchronous IO is just simply how the world works. How the world works looks more like message passing. What abstraction you construct on top of that is a choice. Async/await is not necessarily the global maxima.