using (await memoryLock.AcquireAsync("YOUR_KEY"))
{
// Shared resource (multi-threaded environment)
}
await using (await distributedLock.AcquireAsync("YOUR_KEY"))
{
// Shared resource (distributed environment)
}
This project is under the MIT License.
The project is under development and not ready for production use.