Table of Contents

Class WaitHandleExtensions

Namespace
MarymoorStudios.Core
Assembly
MarymoorStudios.Core.dll

Extensions to the standard WaitHandle.

public static class WaitHandleExtensions
Inheritance
WaitHandleExtensions
Inherited Members

Methods

WaitOneAsync(WaitHandle, CancellationToken)

Equivalent to a call to WaitOne() without blocking a thread.

public static Task WaitOneAsync(this WaitHandle handle, CancellationToken cancel = default)

Parameters

handle WaitHandle

The handle to wait on.

cancel CancellationToken

Cancellation Token.

Returns

Task

A task that resolves when the wait is complete.