These are chat archives for ReactiveX/RxJava

21st
Aug 2018
Mark Raynsford
@io7m
Aug 21 2018 08:46
'ello. i'm wondering if there's a recommended way to achieve the following on 1.x: i have a hot observable (a publishsubject) but i'd like to buffer the last produced item so that new subscribers always see the most recently published event when they subscribe (and then see any new events when i publish them after that)
i'm currently stuck on 1.x due to an incompatible third-party dependency in the project i'm working on, unfortunately
sorry, that should read "buffer the most recently produced value"
Mark Raynsford
@io7m
Aug 21 2018 12:51
i assume that i want some combination of replay and defer, but i can't quite work it out
Mark Raynsford
@io7m
Aug 21 2018 13:00
... turns out a BehaviorSubject does exactly this
sorry for the noise!