ViShap.Rewind
1.0.0-alpha.1
Prefix Reserved
This is a prerelease version of ViShap.Rewind.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ViShap.Rewind --version 1.0.0-alpha.1
NuGet\Install-Package ViShap.Rewind -Version 1.0.0-alpha.1
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="ViShap.Rewind" Version="1.0.0-alpha.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ViShap.Rewind" Version="1.0.0-alpha.1" />
<PackageReference Include="ViShap.Rewind" />
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 ViShap.Rewind --version 1.0.0-alpha.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ViShap.Rewind, 1.0.0-alpha.1"
#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 ViShap.Rewind@1.0.0-alpha.1
#: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=ViShap.Rewind&version=1.0.0-alpha.1&prerelease
#tool nuget:?package=ViShap.Rewind&version=1.0.0-alpha.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ViShap.Rewind
Atomic in-memory state change for .NET. A block of code either keeps all of its changes to tracked state or none of them, and the effects it has outside the process are bound to that outcome.
This meta-package ships no code of its own. It brings:
| Package | What it holds |
|---|---|
ViShap.Rewind.Core |
Scopes, tracked cells, effects, exceptions |
ViShap.Rewind.Generator |
The source generator and analyzers; they run in the compiler only |
For tests, add ViShap.Rewind.Testing to the test project.
using ViShap.Rewind;
var account = new Account { Balance = 100m };
try
{
Rewind.Run(() =>
{
account.Balance -= 30m;
throw new InvalidOperationException("Payment declined");
});
}
catch (InvalidOperationException)
{
}
Console.WriteLine(account.Balance); // 100
[Rewindable]
public partial class Account
{
public partial decimal Balance { get; set; }
}
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- ViShap.Rewind.Core (>= 1.0.0-alpha.1)
- ViShap.Rewind.Generator (>= 1.0.0-alpha.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 87 | 11/17/2026 |
| 1.0.0-rc.3 | 72 | 11/14/2026 |
| 1.0.0-rc.2 | 86 | 11/14/2026 |
| 1.0.0-rc.1 | 68 | 11/12/2026 |
| 1.0.0-beta.1 | 64 | 11/12/2026 |
| 1.0.0-alpha.1 | 75 | 11/11/2026 |