Ferrous.Concurrency 2.3.0

dotnet add package Ferrous.Concurrency --version 2.3.0
                    
NuGet\Install-Package Ferrous.Concurrency -Version 2.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ferrous.Concurrency" Version="2.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ferrous.Concurrency" Version="2.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Ferrous.Concurrency" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ferrous.Concurrency --version 2.3.0
                    
#r "nuget: Ferrous.Concurrency, 2.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ferrous.Concurrency@2.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ferrous.Concurrency&version=2.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Ferrous.Concurrency&version=2.3.0
                    
Install as a Cake Tool

Ferrous.Concurrency

Rust-inspired data-owning mutual exclusion primitives for .NET (net10.0;net11.0, compiled with .NET 11 runtime-async=on):

  • Mutex<T> (backed by System.Threading.Lock) + stack-allocated ref struct MutexGuard<T> so protected state can only be accessed while holding the lock and can never escape across await.
  • AsyncMutex<T> (ValueTask-based async mutex with zero-allocation uncontended fast path) + AsyncMutexGuard<T>.
using Ferrous.Concurrency;

var counter = new Mutex<int>(0);
using (var guard = counter.Lock())
{
    guard.Value++;
}

See the Ferrous Repository for full documentation.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Ferrous.Concurrency:

Package Downloads
Ferrous

Rust-grade compile-time safety, zero-allocation primitives, source generators, and Clippy-style Roslyn analyzers for .NET (polyfilling on .NET 10 and lighting up natively on .NET 11 / C# 15).

Ferrous.Testing

Rust-grade testing utilities for .NET: in-memory compile-fail assertions (CompileAssert, like Rust's trybuild), framework-agnostic Result/Option assertions, and zero-allocation assertions (AllocAssert).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.0 0 11/30/2026
2.2.0 0 11/30/2026
2.1.0 0 11/30/2026
2.0.0 0 11/30/2026
1.7.4 0 11/30/2026
1.7.3 0 11/30/2026
1.7.2 0 11/30/2026
1.7.1 0 11/30/2026
1.7.0 0 11/30/2026
1.6.0 0 11/30/2026
1.5.0 0 11/30/2026
1.4.0 34 11/30/2026
1.3.3 42 11/30/2026
1.3.2 40 11/30/2026
1.3.1 40 11/30/2026
1.3.0 46 11/30/2026