Hacker News new | ask | show | jobs
by ot 3452 days ago
And with coroutines, futures are useless again :)
1 comments

Ah, that's a common misconception. Even with coroutines you still want explicit async calls and futures, otherwise if you restrict yourself only sync calls, you either have to artificially serialize operations or have to spawn artificial coroutines.

What do you do not want are explicit uses of 'future::then' and the required manual CPS transform. Instead you want a wait-for-{any,all} future operations.

Yes, that's what I meant, futures for control flow.