ReactiveVars 0.2.1
dotnet add package ReactiveVars --version 0.2.1
NuGet\Install-Package ReactiveVars -Version 0.2.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="ReactiveVars" Version="0.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ReactiveVars --version 0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ReactiveVars, 0.2.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.
// Install ReactiveVars as a Cake Addin #addin nuget:?package=ReactiveVars&version=0.2.1 // Install ReactiveVars as a Cake Tool #tool nuget:?package=ReactiveVars&version=0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ReactiveVars
Usings
global using LanguageExt;
global using LanguageExt.Common;
global using static LanguageExt.Prelude;
global using Unit = LanguageExt.Unit;
global using Obs = System.Reactive.Linq.Observable;
global using Disp = System.Reactive.Disposables.CompositeDisposable;
global using static ReactiveVars.DispMaker;
global using LR = ReactiveVars.ReactiveVarsLogger;
Disp Tracking
// Create disps (this function is in the DispMaker class)
var d = MkD("Name");
// Call this at the end of your program (or test)
DispDiag.CheckForUndisposedDisps();
Tests
[SetUp] void Setup() {
Reseter.ResetDispsForTests();
}
[TearDown] void Teardown() {
DispDiag.CheckForUndisposedDisps();
}
LINQPad
void OnStart() => Reseter.Reset();
Config Tracker
public record struct CfgLog(
bool WinGeom,
bool NcHitTest
);
public record struct Cfg(
CfgLog Log
);
public static class G
{
private const string ConfigFile = @"config\config.json";
private static readonly Disp D = new();
private static readonly IRwVar<IRoVar<Cfg>> CfgVar = Var.Make(RxCfg.Make(ConfigFile, default(Cfg), SysJsoner.Config), D);
static G()
{
var schedD = new ScheduledDisposable(TaskPoolScheduler.Default, D);
AppDomain.CurrentDomain.ProcessExit += (_, _) =>
{
schedD.Dispose();
};
}
public static IRoVar<Cfg> Cfg => CfgVar.Switch().ToVar();
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- DynamicData (>= 8.3.27)
- LanguageExt.Core (>= 4.4.7)
- PowBasics (>= 0.2.1)
- PowDisp (>= 0.2.1)
-
net8.0
- DynamicData (>= 8.3.27)
- LanguageExt.Core (>= 4.4.7)
- PowBasics (>= 0.2.1)
- PowDisp (>= 0.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.