Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.06 KB

File metadata and controls

43 lines (31 loc) · 1.06 KB

Synchronization mechanisms in .NET 🔐

Prevent race contidion

Package

Build & Tests

⭐ - The star motivates me a lot!

Usage

MemoryLock

using (await memoryLock.AcquireAsync("YOUR_KEY"))
{
   // Shared resource (multi-threaded environment)
}

DistributedLock

await using (await distributedLock.AcquireAsync("YOUR_KEY"))
{
   // Shared resource (distributed environment)
}

⚖️ License

This project is under the MIT License.

☢️ Disclaimer

The project is under development and not ready for production use.