18 public static async Task<SemaphoreSlimContext>
Lock(SemaphoreSlim semaphore, CancellationToken cancellationToken)
readonly SemaphoreSlim lockedSemaphore
The locked SemaphoreSlim
bool disposed
If Dispose has been called
void Dispose()
Release the lock on lockedSemaphore
static async Task< SemaphoreSlimContext > Lock(SemaphoreSlim semaphore, CancellationToken cancellationToken)
Asyncronously locks a semaphore
Async lock context helper