FTXUI 7.0.3
C++ functional terminal UI.
Loading...
Searching...
No Matches
PendingTask Struct Reference

#include <task_internal.hpp>

Public Member Functions

 PendingTask (Task t)
 
 PendingTask (Task t, std::chrono::steady_clock::duration duration)
 
bool operator< (const PendingTask &other) const
 

Public Attributes

Task task
 La tâche à exécuter.
 
std::optional< std::chrono::steady_clock::time_point > time
 

Detailed Description

Une PendingTask représente une tâche qui doit être exécutée à un moment précis, ou dès que possible.

Definition at line 18 of file task_internal.hpp.

Constructor & Destructor Documentation

◆ PendingTask() [1/2]

PendingTask ( Task t)
inline

Definition at line 20 of file task_internal.hpp.

◆ PendingTask() [2/2]

PendingTask ( Task t,
std::chrono::steady_clock::duration duration )
inline

Definition at line 23 of file task_internal.hpp.

Member Function Documentation

◆ operator<()

bool operator< ( const PendingTask & other) const

Compare deux PendingTasks par leur heure. Si les deux tâches n'ont pas d'heure, elles sont considérées comme égales. bool operator<(const PendingTask& other) const;

Definition at line 7 of file task.cpp.

Member Data Documentation

◆ task

Task task

La tâche à exécuter.

Definition at line 27 of file task_internal.hpp.

◆ time

std::optional<std::chrono::steady_clock::time_point> time

L'heure à laquelle la tâche doit être exécutée. Si l'heure est vide, la tâche doit être exécutée dès que possible. std::optional<std::chrono::steady_clock::time_point> time;

Definition at line 31 of file task_internal.hpp.


The documentation for this struct was generated from the following files: