FTXUI 6.1.9
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 tarea a ejecutar.
 
std::optional< std::chrono::steady_clock::time_point > time
 

Detailed Description

Una PendingTask representa una tarea programada para ser ejecutada en un momento específico, o tan pronto como sea posible.

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

Compara dos PendingTask por su tiempo. Si ambas tareas no tienen tiempo, se consideran iguales.

Definition at line 7 of file task.cpp.

Member Data Documentation

◆ task

Task task

La tarea a ejecutar.

Definition at line 27 of file task_internal.hpp.

◆ time

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

El momento en que la tarea debe ser ejecutada. Si el momento está vacío, la tarea debe ser ejecutada tan pronto como sea posible.

Definition at line 31 of file task_internal.hpp.


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