API
SemaphoreSlim.WaitAsync
Asynchronously acquires a permit or observes cancellation.
Formal Syntax & Structure
csharp syntaxcsharp
await permits.WaitAsync(token);Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.await permits.WaitAsync(token);