Nui
Classes | Namespaces | Functions
throttle.hpp File Reference
#include <functional>
#include <nui/frontend/rpc_client.hpp>
Include dependency graph for throttle.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Nui::ThrottledFunction
 

Namespaces

 Nui
 

Functions

void Nui::throttle (int milliseconds, std::function< void()> toWrap, std::function< void(ThrottledFunction &&)> callback, bool callWhenReady=false)
 Creates a function that can be used to call a function at most once during the specified interval. More...