Nito.AsyncEx.SemaphoreSlimExtensions
Provides extension methods for SemaphoreSlim.
Synchronously waits on the semaphore, and returns a disposable that releases the semaphore when disposed, thus treating this semaphore as a "multi-lock".
Synchronously waits on the semaphore, and returns a disposable that releases the semaphore when disposed, thus treating this semaphore as a "multi-lock".
public static AwaitableDisposable<IDisposable> LockAsync(this SemaphoreSlim this, CancellationToken cancellationToken)
Asynchronously waits on the semaphore, and returns a disposable that releases the semaphore when disposed, thus treating this semaphore as a "multi-lock".
Asynchronously waits on the semaphore, and returns a disposable that releases the semaphore when disposed, thus treating this semaphore as a "multi-lock".