|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
任务的promise类型 更多...
#include <generator.hpp>
类 | |
| struct | final_awaiter |
| 最终等待器 更多... | |
Public 成员函数 | |
| task | get_return_object () |
| 获取任务对象 | |
| void | set_cancellation_token (cancellation_token *t) noexcept |
| 设置取消令牌 | |
| bool | is_cancelled () const noexcept |
| 检查是否已取消 | |
| suspend_always | initial_suspend () noexcept |
| 初始暂停点 | |
| final_awaiter | final_suspend () noexcept |
| 最终暂停点 | |
| void | return_value (T value) |
| 设置返回值 | |
| void | unhandled_exception () noexcept |
| 处理未捕获的异常 | |
Public 属性 | |
| optional< T > | result |
| 结果值 | |
| exception_ptr | exception |
| 异常指针 | |
| coroutine_handle | continuation |
| 继续执行的协程 | |
| cancellation_token * | token = nullptr |
| 取消令牌 | |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |