Class WaitHandleExtensions
Provides extension methods for System.Threading.WaitHandle.
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class WaitHandleExtensions
Methods
View SourceWaitOneAsync(WaitHandle, int)
Asynchronously waits for the wait handle to be signaled.
Declaration
public static Task WaitOneAsync(this WaitHandle handle, int millisecondsTimeout = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| WaitHandle | handle | The wait handle to wait on. |
| int | millisecondsTimeout | The timeout in milliseconds. Defaults to System.Threading.Timeout.Infinite. |
Returns
| Type | Description |
|---|---|
| Task | A task that completes when the wait handle is signaled or the timeout elapses. |