You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect not to receive values until sub2 has subscribed. Then I would expect not to receive values after sub1 is disposed. Then I would expect to receive values again after sub3 has subscribed.
sub2 should not have received value 4 since we were below minObservers at that point.
Definitely shouldn't have gotten an exception on sub3 subscribing.
sub1: 3
sub2: 3
sub2: 4
InvalidOperationException: Disposable has already been assigned.
at System.Reactive.Disposables.SingleAssignmentDisposableValue.set_Disposable(IDisposable value)
at System.Reactive.Linq.ObservableImpl.RefCount`1.Eager._.Run() at System.Reactive.Linq.ObservableImpl.RefCount`1.Eager.Run(_ sink)
at System.Reactive.Producer`2.<>c.<SubscribeRaw>b__1_0(ValueTuple`2 tuple)
at System.Reactive.Concurrency.Scheduler.<>c__75`1.<ScheduleAction>b__75_0(IScheduler _, ValueTuple`2 tuple)
at System.Reactive.Concurrency.CurrentThreadScheduler.Schedule[TState](TState state, TimeSpan dueTime, Func`3 action)
at System.Reactive.Concurrency.LocalScheduler.Schedule[TState](TState state, Func`3 action)
at System.Reactive.Concurrency.Scheduler.ScheduleAction[TState](IScheduler scheduler, TState state, Action`1 action)
at System.Reactive.Producer`2.SubscribeRaw(IObserver`1 observer, Boolean enableSafeguard)
at System.Reactive.Producer`2.Subscribe(IObserver`1 observer)
at System.ObservableExtensions.Subscribe[T](IObservable`1 source, Action`1 onNext) at UserQuery.Main(), line 21
If this IS expected and not a bug, would love an explanation of what I'm misunderstanding. Thank you!
The text was updated successfully, but these errors were encountered:
Code
Expected Output
I would expect not to receive values until
sub2
has subscribed. Then I would expect not to receive values aftersub1
is disposed. Then I would expect to receive values again aftersub3
has subscribed.Actual Output
sub2
should not have received value 4 since we were belowminObservers
at that point.sub3
subscribing.If this IS expected and not a bug, would love an explanation of what I'm misunderstanding. Thank you!
The text was updated successfully, but these errors were encountered: