LeechCraft 0.6.70-18450-gabe19ee3b0
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 ()
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.


The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.18450.gabe19ee3b0-build/leechcraft-0.6.70-18450-gabe19ee3b0/src/util/threads/coro/throttle.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.18450.gabe19ee3b0-build/leechcraft-0.6.70-18450-gabe19ee3b0/src/util/threads/coro/throttle.cpp