Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

awaitable

The return type of a coroutine or asynchronous operation.

template<
    typename T,
    typename Executor = executor>
class awaitable
Types

Name

Description

executor_type

The executor type that will be used for the coroutine.

value_type

The type of the awaited value.

Member Functions

Name

Description

awaitable

Default constructor.

Move constructor.

valid

Checks if the awaitable refers to a future result.

~awaitable

Destructor.

Requirements

Header: boost/asio/awaitable.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext