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
o1.subscribe(subject);
o2.subscribe(subject); //Incorrect for non-serialized subjects as others are not thread safe. - https://artemzin.com/blog/rxjava-thread-safety-of-operators-and-subjects/subject.onNext("dfdf") // Thread safety.
Also, the following example is equally problematic as subclasses of an observer can be stateful. The best case is to never allow multiple subscriptions with the same observer or consumer.
No description provided.
The text was updated successfully, but these errors were encountered: