
10 Apr
2008
10 Apr
'08
2:17 a.m.
Braddock Gaskill:
I wanted to formally request a review of my Futures library. Latest Version: http://braddock.com/~braddock/future/
The library has matured greatly over the past year. ...
I no longer like future<>::cancel. :-) Have you considered the alternative of automatically invoking the cancel handler when no futures remain? This requires that a promise and a future be created at once: pair<promise,future> pc = create_channel(); or, if empty futures are allowed: future f; // empty/detached promise p(f); // attach p to f This mirrors the future's ability to detect the lack of a promise object.