Interface IRateLimiter
public interface IRateLimiter : IDisposable
- Inherited Members
Methods
CancelAcquireAsync(long, CancellationToken)
ValueTask CancelAcquireAsync(long acquisitionTimestamp, CancellationToken cancellationToken = default)
Parameters
acquisitionTimestamp
longcancellationToken
CancellationToken
Returns
TryAcquireAsync(CancellationToken)
ValueTask<RateLimitAcquisitionResult> TryAcquireAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken