🚚 Move ReflectionExtensions to child namespace

Item for #7
This commit is contained in:
Oliver Booth 2021-01-18 16:38:36 +00:00
parent 16f0a8a869
commit f980ade3a8
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
using System.Threading;
using System.Threading.Tasks;
namespace X10D
namespace X10D.WaitHandleExtensions
{
/// <summary>
/// Extension methods for <see cref="WaitHandle" />.
@ -15,7 +15,7 @@ namespace X10D
/// <returns>Returns a task which wraps <see cref="WaitHandle.WaitOne()" />.</returns>
public static Task WaitOneAsync(this WaitHandle handle)
{
return new Task(() => handle.WaitOne());
return new(() => handle.WaitOne());
}
}
}