API

RateLimiter.AttemptAcquire

Attempts to acquire permits synchronously and returns a lease indicating success.

Formal Syntax & Structure

csharp syntaxcsharp
limiter.AttemptAcquire(1)

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.limiter.AttemptAcquire(1)
C# & .NET Reference