-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Hi Dave,
I believe there is a race condition in the logic for Disposable versus new subscribers. I can't seem to reproduce it with a unit test using TestSchedulers. I can though using more realistic code (see attached), albeit not every time. What seems to happen is the RefCount drops to zero and the disposable is scheduled but not executed, subsequently a new subscriber comes in and gets the existing subject, then the subject is disposed beneath them and no more updates come though.
It only happens when you have a .SubscribeOn
Wondered if you had any thoughts on this?
Crude test code
CrudeTestCode.txt
Metadata
Metadata
Assignees
Labels
No labels