CB.Reactive 1.0.0-preview.1

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

CB.Reactive

Operators and helpers for System.Reactive, extracted from the T·VIN framework where they run in production. Targets net11.0, net10.0, net48 and netstandard2.0.

using CB.Reactive;

What is in it

Hand-off between threads that does not leak what it drops

  • ObserveOnDisposingDropped(scheduler, dropDisposable, maxQueued, onOverflow) - ObserveOn with a bounded queue; whatever is displaced or still queued at teardown is released through dropDisposable.
  • ObserveOnConflatingDropped(scheduler, dropDisposable) - the same, keeping only the newest item.
  • DropWhenBusy(scheduler, onDropped) - deliver an item only when the previous one is done; report the rest as dropped.
  • QuietLoopScheduler - an EventLoopScheduler that drops work after it is disposed instead of throwing on a foreign thread.

Subscriptions

  • SubscribeGuarded(onNext, context, logger) - a handler that throws is logged and the subscription stays (Rx would detach it).
  • Share(), TrackSubscription(out hasObservers), FireAndForget() / FireAndForget(selector), DisposePrevious(...).

Sequences

  • PairWithPrevious(), WhereConsecutive(predicate), DoOnPrevious(...), TrackStatusFlags(reset), RatePerSecond().
  • WhereTrue(), WhereFalse(), ToCommand(BoolToCommandTrigger), WhereHasValue(), ThrowIfDisposed(...), WhereNotDisposed(...), WhereNotNullAndNotDisposed(...).
  • Demultiplex(keySelector) and Demultiplex() (by type): one stream per key or type, plus a fallback.

Producers and retries

  • Producer<T> - runs an enumerable on its own thread only while it has observers; faults are reported and the source rebuilt.
  • ObservableX.Poll(...), ObservableX.RetryWithBackoff(...) for RetryWhen and for blocking actions.

Async clean-up (namespace System.Reactive.Disposables, so no extra using)

  • AddAsync(...), AsDisposable(), DisposeWithAsync(...) - start an IAsyncDisposable from a synchronous Dispose, and log its failure.

Logging

Operators that report something take an optional Microsoft.Extensions.Logging.ILogger; without one they stay silent. The package depends on Microsoft.Extensions.Logging.Abstractions only.

Contributors/Contributing

Maintained by Christian Borck

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 546 11/17/2026
1.0.0-preview.1 142 11/15/2026