2 ms·
> They solve the same problem but in very different ways. Yes. Async/await is stackless, which leads to the “coloured functions” problem (because it can only s
by pansa2 2y ago
> They solve the same problem but in very different ways.
Yes. Async/await is stackless, which leads to the “coloured functions” problem (because it can only suspend function calls one-by-one). Threads are stackful (the whole stack can be suspended at once), which avoids the issue.