SimpleAsyncSubject<T> invokes _observers.ToArray() on every event #1806
alexanderfedin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The code looks like the following:
public ValueTask OnCompletedAsync()
{
IAsyncObserver[] observers;
It would be much less memory pressure (in terms of garbage collection) to use ImmutableList to store the subscribers
SimpleAsyncSubject.zip
.
Beta Was this translation helpful? Give feedback.
All reactions