|
RateLimiterUpdateLimits Method
|
Updates the limits associated with this rate limiter. Note, after this update, the tokens will be completely resupplied.
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax public void UpdateLimits(
double tokensPerSecond,
int maxTokensQueue
)
Public Sub UpdateLimits (
tokensPerSecond As Double,
maxTokensQueue As Integer
)
public:
void UpdateLimits(
double tokensPerSecond,
int maxTokensQueue
)
member UpdateLimits :
tokensPerSecond : float *
maxTokensQueue : int -> unit
function UpdateLimits(tokensPerSecond, maxTokensQueue);
View SourceParameters
- tokensPerSecond Double
- The number of tokens per second that can be generated. Must be greater than zero and less than 1 billion
- maxTokensQueue Int32
- The maximum number of tokens in the queue. Must be at least 1
See Also