Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SemaphoreSlim.WaitAsync Method

.NET Framework 4.6 and 4.5

Asynchronously waits to enter the SemaphoreSlim.

Namespace:  System.Threading
Assemblies:   mscorlib (in mscorlib.dll)
  System.Threading (in System.Threading.dll)

public Task WaitAsync()

Return Value

Type: System.Threading.Tasks.Task
A task that will complete when the semaphore has been entered.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft