|
FTXUI 6.1.9
C++ functional terminal UI.
|
#include <task_runner.hpp>
Public 成员函数 | |
| TaskRunner () | |
| ~TaskRunner () | |
| auto | PostTask (Task task) -> void |
| 安排一个任务立即执行。 | |
| auto | PostDelayedTask (Task task, std::chrono::steady_clock::duration duration) -> void |
| 安排一个任务在指定持续时间后执行。 | |
| auto | RunUntilIdle () -> std::optional< std::chrono::steady_clock::duration > |
| 运行队列中的任务,返回下一个延迟任务可以执行的延迟时间。 | |
| auto | Run () -> void |
| bool | HasImmediateTasks () const |
| size_t | ExecutedTasks () const |
静态 Public 成员函数 | |
| static auto | Current () -> TaskRunner * |
在文件 task_runner.hpp 第 12 行定义.
| TaskRunner | ( | ) |
在文件 task_runner.cpp 第 13 行定义.
| ~TaskRunner | ( | ) |
在文件 task_runner.cpp 第 19 行定义.
|
static |
在文件 task_runner.cpp 第 24 行定义.
| auto PostTask | ( | Task | task | ) | -> void |
安排一个任务立即执行。
在文件 task_runner.cpp 第 29 行定义.
| auto PostDelayedTask | ( | Task | task, |
| std::chrono::steady_clock::duration | duration ) -> void |
安排一个任务在指定持续时间后执行。
在文件 task_runner.cpp 第 33 行定义.
| auto RunUntilIdle | ( | ) | -> std::optional<std::chrono::steady_clock::duration> |
| auto Run | ( | ) | -> void |
在文件 task_runner.cpp 第 62 行定义.
|
inline |
在文件 task_runner.hpp 第 33 行定义.
|
inline |
在文件 task_runner.hpp 第 35 行定义.