Soenneker.Utils.CancellationScopes 4.0.52

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.CancellationScopes --version 4.0.52
                    
NuGet\Install-Package Soenneker.Utils.CancellationScopes -Version 4.0.52
                    
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="Soenneker.Utils.CancellationScopes" Version="4.0.52" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.CancellationScopes" Version="4.0.52" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.CancellationScopes" />
                    
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 Soenneker.Utils.CancellationScopes --version 4.0.52
                    
#r "nuget: Soenneker.Utils.CancellationScopes, 4.0.52"
                    
#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 Soenneker.Utils.CancellationScopes@4.0.52
                    
#: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=Soenneker.Utils.CancellationScopes&version=4.0.52
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.CancellationScopes&version=4.0.52
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.CancellationScopes

A lightweight library for creating, resetting, and cancelling CancellationToken instances in a thread-safe, reusable way.

Installation

dotnet add package Soenneker.Utils.CancellationScopes

Quick start

using Soenneker.Utils.CancellationScopes;

Create CancellationScope directly or depend on ICancellationScope in code that uses the abstraction.

Common operations

  • Cancel() - Cancels any in-flight work associated with the current CancellationToken. This method is a no-op if no CancellationTokenSource has been created yet.
  • ResetCancellation() - Cancels the current CancellationToken (if any) and replaces it with a fresh CancellationTokenSource for new work. This method allows a consumer to cleanly cancel in-progress work and immediately prepare for a new operation without lingering cancellation state.
  • DisposeAsync() - Cancels the scope and asynchronously releases its cancellation resources.
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. 
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 Soenneker.Utils.CancellationScopes:

Package Downloads
Soenneker.Blazor.Utils.ModuleImport

A Blazor utility library assisting with asynchronous module loading

Soenneker.Maui.Blazor.BrowserLogger

Adds the ability to browser console log in Blazor MAUI apps

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.75 2,493 10/15/2026
4.0.74 422 10/14/2026
4.0.73 873 10/14/2026
4.0.72 1,031 10/14/2026
4.0.66 2,404 10/13/2026
4.0.63 5,353 10/11/2026
4.0.62 92 10/11/2026
4.0.61 23,921 9/24/2026
4.0.60 97 9/24/2026
4.0.59 8,213 9/15/2026
4.0.58 5,872 9/13/2026
4.0.57 4,187 9/12/2026
4.0.54 20,306 9/4/2026
4.0.53 10,027 8/30/2026
4.0.52 290 8/30/2026
4.0.51 1,069 8/30/2026
4.0.50 2,359 8/29/2026
4.0.49 149 8/29/2026
4.0.48 37,139 7/28/2026
4.0.47 2,040 7/27/2026
Loading failed

Update dependency Soenneker.Extensions.Task to 4.0.128 (#353)