Method AcquireAsync
- Namespace
- IntentSharp.Resilience
- Assembly
- IntentSharp.dll
AcquireAsync(string, TimeSpan, CancellationToken)
Waits until a request to the provider is permitted, or throws AIRateLimitException when the wait would exceed maxWait.
public Task AcquireAsync(string providerName, TimeSpan maxWait, CancellationToken cancellationToken = default)
Parameters
providerNamestringmaxWaitTimeSpancancellationTokenCancellationToken
Returns
- Task