Skip to content

IReentrantAsyncDisposable interface

Defined in

Namespace: ReactiveUI.Primitives.Async.Advanced Assembly: ReactiveUI.Primitives.Async.Core.dll Full name: ReactiveUI.Primitives.Async.Advanced.IReentrantAsyncDisposable Modifiers: public abstract

Summary

An async-disposable that can be disposed from within its own in-flight notification.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Remarks

Terminal sinks dispose themselves from inside the very OnNext/OnCompleted call that produced their result. The normal DisposeAsync path waits for in-flight calls on other threads to drain before completing; once that notification's continuation has hopped threads the wait would block on the call that is itself awaiting the dispose. This entry point skips that self-join.

Methods

NameSummary
DisposeFromNotificationAsyncDisposes from within the object's own in-flight notification, skipping the in-flight-call wait.