Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::TimeoutEvent Struct Reference

Timeout Event. More...

#include <TimeWheel.h>

Public Types

using Callback = std::function<void()>
 Type of the callback function when a timeout event occurs.
 

Public Attributes

int64_t range {}
 Total duration of the timeout event.
 
int64_t target {}
 Specific time the timeout event will occur.
 
bool repeat {false}
 Whether to repeat the timeout event after it occurs.
 
Callback callback {}
 Callback function when the timeout event occurs.
 

Detailed Description

Timeout Event.

Member Typedef Documentation

◆ Callback

using sese::TimeoutEvent::Callback = std::function<void()>

Type of the callback function when a timeout event occurs.

Member Data Documentation

◆ callback

Callback sese::TimeoutEvent::callback {}

Callback function when the timeout event occurs.

◆ range

int64_t sese::TimeoutEvent::range {}

Total duration of the timeout event.

Referenced by sese::TimeWheel::delay().

◆ repeat

bool sese::TimeoutEvent::repeat {false}

Whether to repeat the timeout event after it occurs.

◆ target

int64_t sese::TimeoutEvent::target {}

Specific time the timeout event will occur.


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