|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
取消令牌 更多...
#include <generator.hpp>
类 | |
| struct | check_awaiter |
| 取消检查等待器 更多... | |
Public 成员函数 | |
| cancellation_token () | |
| 默认构造函数,创建新的取消令牌 | |
| cancellation_token (const cancellation_token &other) | |
| 拷贝构造函数,共享状态 | |
| cancellation_token & | operator= (const cancellation_token &other) |
| 拷贝赋值运算符 | |
| ~cancellation_token () | |
| 析构函数,释放状态 | |
| void | cancel () noexcept |
| 请求取消 | |
| bool | is_cancelled () const noexcept |
| 检查是否已被取消 | |
| check_awaiter | check () const |
| 获取取消检查等待器 | |
|
inline |
拷贝构造函数,共享状态
| other | 另一个取消令牌 |
在文件 generator.hpp 第 95 行定义.
引用了 cancellation_token() , 以及 memory_order_relaxed.
|
inline |
|
inlinenoexcept |
|
inline |
拷贝赋值运算符
| other | 另一个取消令牌 |
在文件 generator.hpp 第 107 行定义.
引用了 addressof(), cancellation_token() , 以及 memory_order_relaxed.