Boost logo

Boost :

Subject: Re: [boost] [afio] Formal review of Boost.AFIO
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2015-08-28 08:51:41

> So to repeat myself, as a guideline to write a future based API:
> 1. You should always return a single (unique) future that represents the
> result of the asynchronous operation.
> 2. Never return shared_future from your API functions
> 3. Use the standard wait composure functions instead of trying to be
> clever and hide all that from the user inside your async functions.

I agree 100% to all of the above!

Regards Hartmut

Boost list run by bdawes at, gregod at, cpdaniel at, john at