#include <task_runner.hpp>
Definition at line 12 of file task_runner.hpp.
◆ TaskRunner()
◆ ~TaskRunner()
◆ Current()
◆ PostTask()
| auto PostTask |
( |
Task | task | ) |
-> void |
◆ PostDelayedTask()
| auto PostDelayedTask |
( |
Task | task, |
|
|
std::chrono::steady_clock::duration | duration ) -> void |
◆ RunUntilIdle()
| auto RunUntilIdle |
( |
| ) |
-> std::optional<std::chrono::steady_clock::duration> |
執行佇列中的 task。
執行佇列中的 task,回傳延遲到下一個延遲 task 可執行的時間。
Definition at line 40 of file task_runner.cpp.
◆ Run()
◆ HasImmediateTasks()
| bool HasImmediateTasks |
( |
| ) |
const |
|
inline |
◆ ExecutedTasks()
| size_t ExecutedTasks |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: