3 ms·
"it makes concurrency easier to reason about" Doesn't it do that by not really having concurrency? There is only a single locus of control so a whole class of
by arethuza 6y ago
"it makes concurrency easier to reason about"
Doesn't it do that by not really having concurrency? There is only a single locus of control so a whole class of problems should simply cease to exist.
- hansvm 6y agoWe might be nit-picking definitions, but I don't think that's a fair characterization. From the perspective of the user programming with async, when you gather the results of two coroutines you don't care at all the order used for each stack frame. The mental model is one of concurrent operations which might suspend at yield points.