diff --git a/X10D/src/WaitHandleExtensions/WaitHandleExtensions.cs b/X10D/src/WaitHandleExtensions/WaitHandleExtensions.cs index 97fbff1..7fb1ba6 100644 --- a/X10D/src/WaitHandleExtensions/WaitHandleExtensions.cs +++ b/X10D/src/WaitHandleExtensions/WaitHandleExtensions.cs @@ -13,15 +13,18 @@ namespace X10D /// Returns a which can be awaited until the current receives a signal. /// /// The instance. - /// A task which encapsulates . - public static Task WaitOneAsync(this WaitHandle handle) + /// + /// if the current instance receives a signal. If the current instance is never signaled, + /// never returns. + /// + public static Task WaitOneAsync(this WaitHandle handle) { if (handle is null) { throw new ArgumentNullException(nameof(handle)); } - return new Task(() => handle.WaitOne()); + return Task.Run(handle.WaitOne); } } }