The traits describing the resumable coroutine behaviour.
template< typename Yield, typename Return, typename Executor> struct coro_traits
Name |
Description |
---|---|
Completion handler type used by async_resume. |
|
The error type of the coroutine. void for noexcept. |
|
The value that can be passed into a symmetrical cororoutine. void if asymmetrical. |
|
The type received by a co_await or async_resume. It's a combination of yield and return. |
|
The type that can be passed out through a co_return. |
|
The signature used by the async_resume. |
|
The type that can be passed out through a co_yield. |
Name |
Description |
---|---|
is_noexcept [static] |
Whether or not the coroutine is noexcept. |
Template parameter Yield
specifies type or signature used by co_yield, Return
specifies the type used for co_return, and Executor
specifies the underlying executor type.
Header: asio/experimental/coro_traits.hpp
Convenience header: None