mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-29 07:48:44 +00:00
5586802b86
Some tasks are invoked multiple times. Normally those tasks are broken up inside a loop and had to be continued there. With coroutines that is easier as it's possible to suspend inside a loop. Coroutines which are lambdas should not capture anythig as the lifetime of the captured values might end before the coroutine completes. For that purpose `std::bind_front` is used.