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
Thank you so much for pointing this out! We really appreciate you looking over our samples and helping us to improve them (plus we got to learn more about concurrency with Subjects.)
We'll get the examples updated as soon as possible.
Hi!
I was watching the video of this code base and saw a common mistake in using
Subject
s:RxJavaGoT/app/src/main/java/net/tensory/rxjavatalk/repositories/BattleFrontFeed.java
Line 26 in 110c3a2
Subject
s by default are not thread safe when callingonNext
and lines 34:RxJavaGoT/app/src/main/java/net/tensory/rxjavatalk/repositories/BattleFrontFeed.java
Lines 33 to 34 in 110c3a2
and 46:
RxJavaGoT/app/src/main/java/net/tensory/rxjavatalk/repositories/BattleFrontFeed.java
Lines 45 to 46 in 110c3a2
may end up calling it concurrently, which leads to undefined behavior.
Line 26 should look like this instead:
The text was updated successfully, but these errors were encountered: