Exemple #1
0
        public void LockAndUnlock()
        {
            var mutex = new AsyncMutex();

            using (mutex.LockAndUnlock())
            {
                Assert.False(mutex.Lock(0));
            }
        }