From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-09 22:17:25
>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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk