Click or drag to resize

RateLimiter Constructor

Creates a RateLimiter

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public RateLimiter(
	double tokensPerSecond = 10,
	int maxTokensQueue = 10
)
View Source

Parameters

tokensPerSecond  Double  (Optional)
The number of tokens per second that can be generated. Must be greater than zero and less than 1 billion
maxTokensQueue  Int32  (Optional)
The maximum number of tokens in the queue. Must be at least 1
See Also