Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3rdparty/libprocess
/ RateLimiter
Method
RateLimiter
include/process/limiter.hpp:160–164 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
158
159
160
inline RateLimiter::RateLimiter(int permits, const Duration& duration)
161
{
162
process = new RateLimiterProcess(permits, duration);
163
spawn(process);
164
}
165
166
167
inline RateLimiter::RateLimiter(double permitsPerSecond)
Callers
nothing calls this directly
Calls
1
spawn
Function · 0.70
Tested by
no test coverage detected