on
on 把任务提交到另一个运行时实例执行,结果或异常交还来源协程。头文件 <faio/runtime/instance.hpp>。
接口
| 接口 | 行为 |
|---|---|
on(anchor, task) | 在目标运行时执行子任务,结果或异常交还来源协程;两边静态调度器类型必须相同 |
anchored_runtime | 固定多线程模式并拥有独立驱动线程;anchor() 返回准入凭据,stop() 关闭并排空 |
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help