Home | Libraries | People | FAQ | More |
An interface for customising the behaviour of an initiating function.
template< typename CompletionToken, typename Signature> class async_result
Name |
Description |
---|---|
The concrete completion handler type for the specific signature. |
|
The return type of the initiating function. |
Name |
Description |
---|---|
Construct an async result from a given handler. |
|
Obtain the value to be returned from the initiating function. |
The async_result
traits class is used for determining:
The trait allows the handler and return types to be determined at the point where the specific completion handler signature is known.
This template may be specialised for user-defined completion token types. The primary template assumes that the CompletionToken is the completion handler.
Header: boost/asio/async_result.hpp
Convenience header: boost/asio.hpp