Rx.NET v6.1 New Feature: DisposeWith()
In this episode, Ian Griffiths introduces the new DisposeWith method available in Rx.NET version 6.1, released in October 2025.
He discusses the new functionalities, including a new TakeUntil() overload and the ResetExceptionDispatchState operator, with additional videos to cover these features.
Ian explains that DisposeWith is a community contribution by Chris Pullman, designed to facilitate a fluent coding style by simplifying the disposal of multiple subscriptions. He demonstrates the method in a console application, comparing it with the traditional CompositeDisposable approach, and highlights its ease of use for handling observable subscriptions.
Full documentation is available at Introduction to Rx.NET.
- 00:00 Introduction to Dispose Operator in Rx.NET
- 00:43 Community Contribution and Background
- 01:26 Purpose and Design of
DisposeWithMethod - 01:47 Demo:
DisposeWithMethod in Action - 02:11 CompositeDisposable vs
DisposeWith - 03:22 Fluent Style Development with
DisposeWith - 04:32 Conclusion and Further Resources
Published on:
Learn moreWe can help you with Rx.NET v6.1 New Feature: DisposeWith()
If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.
Related posts
How .NET 11.0 boosted JSON Schema performance by 3%
Benchmarking Corvus.JsonSchema on .NET 11.0 showed a 3% free speed-up, the smallest step since we started measuring, on top of 13% from .NET 9...
Async Rx.NET - The journey to GA
Ian Griffiths, Technical Fellow at endjin, shares the latest updates on the Async Reactive Extensions for .NET (AKA Async Rx.NET). Support for...
Introducing Survive the Sprint: a pixel-art game built (almost) in one shot with Claude Opus 5.5
I gave Claude Opus 5.5 one prompt and the endjin 'Who we are' page, and got back most of a pixel-art browser game starring the endjineers. Her...
How to trust your AI-assisted data analysis
AI tools can produce data analysis that looks authoritative without being verifiable. Whether you're the analyst or the decision-maker relying...
Providing comparative context with DAX Calculated Tables under Row Level Security
Row Level Security in Power BI solves one problem (who sees what) but introduces another - comparisons across the full dataset become impossib...
How to Implement Generation in RAG
Understand the generation step of RAG: how LLMs use augmented context to produce grounded responses, how to enforce structured outputs with Py...
How to Implement Augmentation in RAG
Understand the augmentation step of RAG: how retrieved documents are structured into prompts, how metadata and citations improve response qual...
How to Implement Retrieval in RAG
Understand the retrieval step of RAG: Learn how database queries, keyword search, vector search, and hybrid approaches find the right informat...
TypeDeclaration: An Abstraction for Understanding JSON Schema
The Corvus.Json.CodeGeneration library analyses JSON Schema and builds a TypeDeclaration tree that maps schema patterns to code patterns. The ...
Optimising DAX: Practical Examples
The final post in the Optimising DAX series: the CALCULATE trap, variables and IF.EAGER, slicer costs, and a practical approach to isolating s...