Albert
Loading...
Searching...
No Matches
albert::detail::RateLimiter Class Reference

#include <albert/networkutil.h>

Detailed Description

Blocks execution.

Public Member Functions

 RateLimiter (unsigned int ms)
 
 ~RateLimiter ()
 
const bool & debounce (const bool &valid)
 Blocks until the next request is allowed.
 

Constructor & Destructor Documentation

◆ RateLimiter()

albert::detail::RateLimiter::RateLimiter ( unsigned int  ms)

◆ ~RateLimiter()

albert::detail::RateLimiter::~RateLimiter ( )

Member Function Documentation

◆ debounce()

const bool & albert::detail::RateLimiter::debounce ( const bool &  valid)

Blocks until the next request is allowed.

If valid is false, it returns immediately.


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