Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

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