System.Threading.SemaphoreSlim.WaitAsync Method

Asynchronously waits to enter the System.Threading.SemaphoreSlim, while observing a System.Threading.CancellationToken.

Syntax

public System.Threading.Tasks.Task WaitAsync (CancellationToken cancellationToken)

Parameters

cancellationToken
The System.Threading.CancellationToken token to observe.

Returns

A task that will complete when the semaphore has been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0