Table of Contents

Interface IRateLimiter

Namespace
NetCord.Gateway
Assembly
NetCord.dll
public interface IRateLimiter : IDisposable
Inherited Members

Methods

CancelAcquireAsync(long, CancellationToken)

ValueTask CancelAcquireAsync(long acquisitionTimestamp, CancellationToken cancellationToken = default)

Parameters

acquisitionTimestamp long
cancellationToken CancellationToken

Returns

ValueTask

TryAcquireAsync(CancellationToken)

ValueTask<RateLimitAcquisitionResult> TryAcquireAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

ValueTask<RateLimitAcquisitionResult>