mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-16 06:29:29 +00:00
12 lines
297 B
C#
12 lines
297 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace System.Extensions;
|
|
public static class SemaphoreSlimExtensions
|
|
{
|
|
public static async Task<SemaphoreSlimContext> Acquire(this SemaphoreSlim semaphore)
|
|
{
|
|
return await SemaphoreSlimContext.Create(semaphore);
|
|
}
|
|
}
|