Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-09 22:17:25

Braddock Gaskill:

>I wanted to formally request a review of my Futures library.
> Latest Version:
> 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, gregod at, cpdaniel at, john at