Click or drag to resize
WaitHandleExtensionsAsTask Method (WaitHandle)
Convert a wait handle to a TPL Task.

Namespace: Griffin
Assembly: Griffin.Core (in Griffin.Core.dll) Version: (
public static Task AsTask(
	this WaitHandle handle


Type: System.ThreadingWaitHandle
Handle to convert

Return Value

Type: Task
Generated task.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WaitHandle. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also