LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::Throttle Class Reference

#include "throttle.h"

Public Member Functions

 Throttle (std::chrono::milliseconds, Qt::TimerType=Qt::TimerType::CoarseTimer)
 
std::chrono::milliseconds GetInterval () const
 
void Backoff ()
 
bool await_ready ()
 
void await_suspend (std::coroutine_handle<>)
 
void await_resume () const
 

Detailed Description

Definition at line 20 of file throttle.h.

Constructor & Destructor Documentation

◆ Throttle()

LC::Util::Throttle::Throttle ( std::chrono::milliseconds interval,
Qt::TimerType type = Qt::TimerType::CoarseTimer )
explicit

Definition at line 14 of file throttle.cpp.

Member Function Documentation

◆ await_ready()

bool LC::Util::Throttle::await_ready ( )

Definition at line 41 of file throttle.cpp.

◆ await_resume()

void LC::Util::Throttle::await_resume ( ) const

Definition at line 57 of file throttle.cpp.

◆ await_suspend()

void LC::Util::Throttle::await_suspend ( std::coroutine_handle<> handle)

Definition at line 49 of file throttle.cpp.

◆ Backoff()

void LC::Util::Throttle::Backoff ( )

Definition at line 36 of file throttle.cpp.

◆ GetInterval()

std::chrono::milliseconds LC::Util::Throttle::GetInterval ( ) const

Definition at line 31 of file throttle.cpp.


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