WaitAsync Method

SemaphoreSlim.WaitAsync Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Asynchronously waits to enter the SemaphoreSlim.

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

public Task WaitAsync()

Return Value

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

Windows Phone OS

Supported in: 8.1, 8.0

© 2016 Microsoft