FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
task.cpp
Go to the documentation of this file.
1// Copyright 2024 Arthur Sonzogni. 無断複写・転載を禁じます。
2// このソースコードの使用は、LICENSEファイルにあるMITライセンスに準拠します。
4
5namespace ftxui::task {
6bool PendingTask::operator<(const PendingTask& other) const {
7 if (!time && !other.time) {
8 return false;
9 }
10 if (!time) {
11 return true;
12 }
13 if (!other.time) {
14 return false;
15 }
16 return time.value() > other.time.value();
17}
18} // namespace ftxui::task
PendingTaskは、特定の時刻に、または可能な限り早く実行されるようにスケジュールされたタスクを表します。
std::optional< std::chrono::steady_clock::time_point > time
タスクが実行されるべき時刻。時刻が空の場合、タスクは可能な限り早く実行されるべきです。
bool operator<(const PendingTask &other) const
Definition task.cpp:6