![]() |
Toolbox snapshot
The Reactive C++ Toolbox
|
#include <toolbox/sys/Time.hpp>
Public Member Functions | |
| ThrottledInvoker (Seconds cooldown_interval) | |
| template<typename Callable > | |
| void | operator() (MonoTime now, Callable &&callable) |
Throttles the invocation of a callable to not exceed a specified rate. The rate is controlled by a cooldown interval.
|
inlineexplicit |