dotnet / dotnet/reactive

How to Dispose of SimpleAsyncSubject<T>?

Open
#1,842 0 comments 0 reactions 0 assignees View on GitHub
[area] Rx
Dominant language
C#
Stars
7.2k
Forks
798
PR merge metrics
No merged PRs in 30d

Description

#### Question

> What is the context of your question or problem?

[System.Reactive.Subjects.SubjectBase](https://github.com/dotnet/reactive/blob/9f2a8090cea4bf931d4ac3ad071f4df147f4df50/Rx.NET/Source/src/System.Reactive/Subjects/SubjectBase.cs) implements `IDisposable`, making it possible for its obervers to be disposed of by disposing of the `Subject` itself, while [System.Reactive.Subjects.SimpleAsyncSubject](https://github.com/dotnet/reactive/blob/9f2a8090cea4bf931d4ac3ad071f4df147f4df50/AsyncRx.NET/System.Reactive.Async.Subjects/System/Reactive/Subjects/SimpleAsyncSubject.cs) does not.

> What is the question or problem you try to solve?

What's the recommended way to rid `SimpleAsyncSubject`'s of its observers, as achieved by disposing of the `Subject` in its non-async counterpart?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.