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ライセンスに準拠します。
3
#include "
ftxui/component/task_internal.hpp
"
4
5
namespace
ftxui::task
{
6
bool
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
ftxui::task
Definition
screen_interactive.hpp:27
ftxui::task::PendingTask
PendingTaskは、特定の時刻に、または可能な限り早く実行されるようにスケジュールされたタスクを表します。
Definition
task_internal.hpp:16
ftxui::task::PendingTask::time
std::optional< std::chrono::steady_clock::time_point > time
タスクが実行されるべき時刻。時刻が空の場合、タスクは可能な限り早く実行されるべきです。
Definition
task_internal.hpp:28
ftxui::task::PendingTask::operator<
bool operator<(const PendingTask &other) const
Definition
task.cpp:6
task_internal.hpp