ViShap.Rewind
1.0.0
Prefix Reserved
dotnet add package ViShap.Rewind --version 1.0.0
NuGet\Install-Package ViShap.Rewind -Version 1.0.0
<PackageReference Include="ViShap.Rewind" Version="1.0.0" />
<PackageVersion Include="ViShap.Rewind" Version="1.0.0" />
<PackageReference Include="ViShap.Rewind" />
paket add ViShap.Rewind --version 1.0.0
#r "nuget: ViShap.Rewind, 1.0.0"
#:package ViShap.Rewind@1.0.0
#addin nuget:?package=ViShap.Rewind&version=1.0.0
#tool nuget:?package=ViShap.Rewind&version=1.0.0
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 state and collections, effects, change sets and history, transactions, files, asynchronous scopes, diagnostics |
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; }
}
Rewind restores state on the thread that changed it; it does not isolate threads from each other, and it joins only an
ambient System.Transactions transaction. The documentation starts with
getting started.
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- ViShap.Rewind.Core (>= 1.0.0)
- ViShap.Rewind.Generator (>= 1.0.0)
-
net8.0
- ViShap.Rewind.Core (>= 1.0.0)
- ViShap.Rewind.Generator (>= 1.0.0)
-
net9.0
- ViShap.Rewind.Core (>= 1.0.0)
- ViShap.Rewind.Generator (>= 1.0.0)
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 |