|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
io_context 的执行器句柄 更多...
#include <io_context.hpp>
Public 成员函数 | |
| void | execute (handler_type handler) const |
| 在关联的 io_context 上投递 handler | |
| io_context & | context () const noexcept |
| 获取关联的 io_context | |
| bool | operator== (const executor &other) const noexcept |
| 相等比较 — 同一 io_context 的执行器相等 | |
| bool | operator!= (const executor &other) const noexcept |
| 不等比较 | |
io_context 的执行器句柄
轻量级可拷贝句柄,引用关联的 io_context。 满足 Executor 概念,可被 strand 和 co_spawn 使用。
在文件 io_context.hpp 第 302 行定义.