private async Task <_SemaphoreLock> Lock3Async() { var semaphore = new _SemaphoreLock(_semaphoreSlim); await semaphore.LockAsync(_timeout, _ct); return(semaphore); }
private async Task <_SemaphoreLock> Lock1Async() { var semaphore = new _SemaphoreLock(_semaphoreSlim); await semaphore.LockAsync(); return(semaphore); }