Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | List of all members
toolbox::util::ThrottledInvoker Class Reference

#include <toolbox/sys/Time.hpp>

Public Member Functions

 ThrottledInvoker (Seconds cooldown_interval)
 
template<typename Callable >
void operator() (MonoTime now, Callable &&callable)
 

Detailed Description

Throttles the invocation of a callable to not exceed a specified rate. The rate is controlled by a cooldown interval.

Definition at line 473 of file Time.hpp.

Constructor & Destructor Documentation

◆ ThrottledInvoker()

toolbox::util::ThrottledInvoker::ThrottledInvoker ( Seconds  cooldown_interval)
inlineexplicit

Definition at line 475 of file Time.hpp.

Member Function Documentation

◆ operator()()

template<typename Callable >
void toolbox::util::ThrottledInvoker::operator() ( MonoTime  now,
Callable &&  callable 
)
inline

Definition at line 479 of file Time.hpp.


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