
6 Jun
2008
6 Jun
'08
8:25 p.m.
Johan Torp:
One of my points is valid even for these two cases. The future-interface allows the promise-fulfiller to detect that all associated futures has died and that it needn't fulfill the request. That is, if we add this functionality to the promise class.
In principle, the callback interface could return a "task handle" instead of void, one that can be used to cancel the task. This looks very similar to asio, by the way.