« Return to Thread: Review Request: future library (Gaskill version)

Re: Review Request: future library (Gaskill version)

by Peter Dimov-5 :: Rate this Message:

Reply to Author | View in Thread

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.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: Review Request: future library (Gaskill version)