diff --git a/include/dpp/coro/task.h b/include/dpp/coro/task.h index 5cdf4577d1..6e6be73c50 100644 --- a/include/dpp/coro/task.h +++ b/include/dpp/coro/task.h @@ -292,6 +292,11 @@ class task : private detail::task::task_base { */ friend class detail::task::task_base; + /** + * @brief The type of the result produced by this task. + */ + using result_type = R; + /** * @brief Function called by the standard library when the coroutine is resumed. * @@ -450,6 +455,11 @@ class task : private detail::task::task_base { */ friend class detail::task::task_base; + /** + * @brief The type of the result produced by this task. + */ + using result_type = void; + /** * @brief Function called by the standard library when the coroutine is resumed. *