Comment by lr1970

1 year ago

Threads are for when you COMPUTE a lot, while async/await are for when you WAIT a lot.

Sometimes you are "computing a lot" over very general dataflow graphs and want to have tasks with work stealing. Async frameworks will give you that for free, seamlessly scaling to any number of underlying threads.

  • interesting. I hope it's not too late to ask: could you expand a little bit, in particular, what do you mean by "over very general dataflow graphs"?