Files
XCSDD/docs/api/threading/task-system/wait.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

797 B
Raw Blame History

TaskSystem::Wait

void Wait(uint64_t taskId)

注意: 此方法当前为空实现,不执行任何操作。

参数:

  • taskId - 要等待的任务 ID

返回:

复杂度: N/A空实现

当前状态: 此方法为空实现,不执行任何操作。任务系统目前不支持按任务 ID 等待。

建议: 使用 TaskGroup::Wait 代替此方法。

示例:

uint64_t id = TaskSystem::Get().Submit([]() {
    for (int i = 0; i < 1000000; ++i) {
        Compute(i);
    }
});

printf("Waiting for task...\n");
// 注意:当前实现为空,建议使用 TaskGroup 来等待任务完成
TaskSystem::Get().Wait(id);
printf("Task completed\n");

相关文档