Other

Async Rx.NET: The journey to GA

endjin Blog Ian Griffiths
Other

After three years of preview, Async Rx.NET finally has a test suite and a route to GA. Ian Griffiths shows how async observers stop Rx.NET from overlapping event handlers, and where .NET 11 Runtime Async fits in.

Key points

  • System.Reactive.Async mirrors Rx.NET's types with IAsyncObservable, IAsyncObserver, IAsyncScheduler and IAsyncSubject.
  • There is no Subscribe: subscriptions go through SubscribeAsync and every call has to be awaited.
  • Async observers close Rx.NET's async void trap, so the next event waits until the handler's task finishes.
  • Operator tests now run from one shared suite against both Rx.NET and Async Rx.NET.
  • The session covers how Runtime Async in .NET 11 can benefit AsyncRx.NET's async callbacks.
  • Lessons from using AI coding assistance on this project close out the talk.

Real-world use

  • A service that writes a CPU load reading to Azure Blob Storage every five seconds instead of blocking a thread in the handler.
  • Event sources such as sensors or servers that push on their own schedule and need strictly ordered, non-overlapping processing.
  • A busy server where slow I/O inside an event handler must not let the next event start before the previous one finishes.

This summary was generated by the agent from the original post on endjin Blog. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message