An interface for customising the behaviour of an initiating function. More...
#include <async_result.hpp>
Public Types | |
typedef void | type |
The return type of the initiating function. More... | |
Public Member Functions | |
async_result (Handler &) | |
Construct an async result from a given handler. More... | |
type | get () |
Obtain the value to be returned from the initiating function. More... | |
An interface for customising the behaviour of an initiating function.
This template may be specialised for user-defined handler types.
typedef void boost::asio::async_result< Handler >::type |
The return type of the initiating function.
|
inlineexplicit |
Construct an async result from a given handler.
When using a specalised async_result, the constructor has an opportunity to initialise some state associated with the handler, which is then returned from the initiating function.
|
inline |
Obtain the value to be returned from the initiating function.