I have some questions about Aff
.
V8 has an asynchronous completion queue. This is how JavaScript Promises are completed. https://v8.dev/blog/fast-async
Aff
has its own completion queue, by @natefaubion : https://github.com/purescript-contrib/purescript-aff/blob/v5.1.2/src/Effect/Aff.js
Why does Aff
need its own completion queue? What do we get from that approach that we can’t get from just using the V8 queue, as in promises?
Having two async completion queues going in the same runtime strikes me as susceptible to starvation and strange race conditions? Do we have to attend to how they interact? Is aff-promise really as effortless as it looks, @nwolverson ?