mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 18:14:58 +00:00
581f4af012
In `Future` there is a notion of cancelation / stop-request. The task callback doesn't have such a notion. Some tasks (like the map-generation) are stopable. It did that in a thread unsave way. A task is canceled when the future is destroied or when `CancelOrWait` is called on it.