LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
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 ()
 
Awaiter operator co_await ()
 

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

◆ Backoff()

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

Definition at line 37 of file throttle.cpp.

◆ GetInterval()

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

Definition at line 32 of file throttle.cpp.

◆ operator co_await()

Throttle::Awaiter LC::Util::Throttle::operator co_await ( )

Definition at line 81 of file throttle.cpp.

References LC::Util::detail::Awaiter().

+ Here is the call graph for this function:

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