mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-22 17:19:30 +00:00
SemaphoreSlim context
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user