How dotnet/reactive works
This repository contains four related .NET sequence libraries; this graph focuses on AsyncRx.NET, the experimental async/await implementation of Rx. Its main workflow is to create or adapt an asynchronous observable, compose LINQ operators, and asynchronously subscribe to receive notifications. The graph also preserves scheduling, subjects, event/task bridges, join patterns, and virtual-time testing as distinct capabilities. Source excerpts are limited, so only directly evidenced relationships are solid; other plausible runtime links are omitted.
Main entry points: When.cs Join coordination · Operators LINQ operators · IAsyncObservable.cs Async contracts · FromAsync.cs Task and event bridges
Components 17
Async stream core
- Observable API
AsyncRx.NET/System.Reactive.Async/AsyncObservable.cs - Async contracts
AsyncRx.NET/System.Reactive.Async/IAsyncObservable.cs - Observer API
AsyncRx.NET/System.Reactive.Async/AsyncObserver.cs - Subjects
AsyncRx.NET/System.Reactive.Async/Subjects
Composition and joins
- LINQ operators
AsyncRx.NET/System.Reactive.Async/Linq/Operators - Join coordination
AsyncRx.NET/System.Reactive.Async/Linq/Operators/When.cs - Join plans
AsyncRx.NET/System.Reactive.Async/Joins/AsyncPlan.cs
Execution support
- Schedulers
AsyncRx.NET/System.Reactive.Async/Concurrency/AsyncScheduler.cs - Async disposal
AsyncRx.NET/System.Reactive.Async/Disposables/AsyncDisposable.cs - Task and event bridges
AsyncRx.NET/System.Reactive.Async/Linq/Operators/FromAsync.cs - Notifications
AsyncRx.NET/System.Reactive.Async/NotificationAsyncExtensions.cs
Virtual-time testing
- Test scheduler
AsyncRx.NET/Microsoft.Reactive.Testing.Async/TestAsyncScheduler.cs - Timed test sources
AsyncRx.NET/Microsoft.Reactive.Testing.Async/ColdAsyncObservable.cs - Test assertions
AsyncRx.NET/Microsoft.Reactive.Testing.Async/AsyncReactiveAssert.cs
Other components
- Application code
- Async event sources
- Tasks
Connections 14
- Application code → Observable API: creates streams
- Observable API → Async contracts: implements
- Application code → LINQ operators: composes
- LINQ operators → Async contracts: transforms
AsyncRx.NET/System.Reactive.Async/Linq/Operators/When.cs - Application code → Observer API: subscribes
- Subjects → Async contracts: exposes streams
- Join coordination → Join plans: activates
AsyncRx.NET/System.Reactive.Async/Linq/Operators/When.cs - Join coordination → Observer API: forwards notifications
AsyncRx.NET/System.Reactive.Async/Linq/Operators/When.cs - Join coordination → Async disposal: disposes joins
AsyncRx.NET/System.Reactive.Async/Linq/Operators/When.cs - LINQ operators → Schedulers: schedules work
- Task and event bridges → Tasks: adapts tasks
- Task and event bridges → Async event sources: adapts events
- Timed test sources → Test scheduler: uses virtual time
- Application code → Test assertions: verifies streams