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
This commit is contained in:
37
docs/api/threading/task-system/wait.md
Normal file
37
docs/api/threading/task-system/wait.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# TaskSystem::Wait
|
||||
|
||||
```cpp
|
||||
void Wait(uint64_t taskId)
|
||||
```
|
||||
|
||||
**注意:** 此方法当前为空实现,不执行任何操作。
|
||||
|
||||
**参数:**
|
||||
- `taskId` - 要等待的任务 ID
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**复杂度:** N/A(空实现)
|
||||
|
||||
**当前状态:** 此方法为空实现,不执行任何操作。任务系统目前不支持按任务 ID 等待。
|
||||
|
||||
**建议:** 使用 `TaskGroup::Wait` 代替此方法。
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
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");
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [TaskSystem 总览](task-system.md) - 返回类总览
|
||||
Reference in New Issue
Block a user