NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #1713 most downloaded on NuGet
An asynchronous .NET library that allows you to lock based on a key (keyed semaphores), limiting concurrent threads sharing the same key to a specified number, with optional pooling for reducing memory allocations.
Latest stable
8.1.2
Last release 1 months ago
19 Sep 2026
Release timing varies
gaps range from 2 weeks to 7 months
Most releases are documented
notes for 45 of 53 stable releases
36 versions withdrawn
withdrawn after publishing
127 years old
117 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Enabled deterministic build allowing you to step into and debug the code.
Nothing published for this version
Nothing published for this version
Synchronous Lock methods with timeouts now must use the out parameter. Async LockAsync methods with timeouts now return AsyncKeyedLockTimeoutReleaser
Synchronous Lock methods with timeouts now must use the out parameter. Async LockAsync methods with timeouts now return AsyncKeyedLockTimeoutReleaser<TKey> instead of IDisposable. IsInUse correctness improved and will now wait on locks to allow concurrent operations to finish before reporting back.
Nothing published for this version
Nothing published for this version
Optimizations and fixing of more rare race conditions.
Optimizations and fixing of more rare race conditions.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed rare race condition (thanks for pointing it out Theodor Zoulias), added limit to avoid unnecessary attempts to fill pool when initialFill > capa
Fixed rare race condition (thanks for pointing it out Theodor Zoulias), added limit to avoid unnecessary attempts to fill pool when initialFill > capacity.
Fixed critical parameter validation issue, optimizations on timeouts, added out parameters for synchronous locks with timeouts, improved tests.
Fixed critical parameter validation issue, optimizations on timeouts, added out parameters for synchronous locks with timeouts, improved tests.
Allowing actionable options, bug fixes with regards to timeouts, better error handling, minor optimizations, improved documentation, added considerabl
Allowing actionable options, bug fixes with regards to timeouts, better error handling, minor optimizations, improved documentation, added considerably more tests.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Updated licensing, small optimisation, fixed README shields issue.
Updated licensing, small optimisation, fixed README shields issue.
Reduced LangVersion and signed assembly.
Reduced LangVersion and signed assembly.
Nothing published for this version
Nothing published for this version
Switched to using ValueTask, helping reduce allocations.
Switched to using ValueTask, helping reduce allocations.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added pool initial fill to allow overriding of the initial number of items in the pool (defaults to the pool size).
Added pool initial fill to allow overriding of the initial number of items in the pool (defaults to the pool size).
Minor performance enhancements.
Minor performance enhancements.
Nothing published for this version
Nothing published for this version
Performance improvements and allowing for object pooling.
Performance improvements and allowing for object pooling.
Nothing published for this version
Performance improvements and also allowing for concurrency level, capacity and an IEqualityComparer to be used.
Performance improvements and also allowing for concurrency level, capacity and an IEqualityComparer to be used.
Nothing published for this version
Nothing published for this version
Fixes CancellationToken issues and adding TryLockAsync methods.
Fixes CancellationToken issues and adding TryLockAsync methods.
Nothing published for this version
Exposing objects. Follows up on major performance improvements.
Exposing objects. Follows up on major performance improvements.
Optimisations, generics constructor and new overloaded methods for Lock / LockAsync
Optimisations, generics constructor and new overloaded methods for Lock / LockAsync
Nothing published for this version
Nothing published for this version
ForceRelease now releases everything in the semaphore before removing the key from the dictionary.
ForceRelease now releases everything in the semaphore before removing the key from the dictionary.
Fixed serious issue with concurrent threads having been limited to 1 irrespective of setting in the constructor. Also added a few features and tests.
Fixed serious issue with concurrent threads having been limited to 1 irrespective of setting in the constructor. Also added a few features and tests.
Nothing published for this version
Nothing published for this version
Nothing published for this version
No longer static; now requires you to create an instance and store it, or inject it via dependency injection.
No longer static; now requires you to create an instance and store it, or inject it via dependency injection.
Allowed changing of max requests, getting request counts and force releasing locks.
Allowed changing of max requests, getting request counts and force releasing locks.
Nothing published for this version
Nothing published for this version
One column per quarter.