NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::io_context::executor类 参考

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.hpp302 行定义.


该类的文档由以下文件生成: