Sticky event bus
SmartDengg opened this issue · comments
小鄧子 commented
Hi.
First of all, thank you for the great samples, That's awesome!
I would like to get some advice. I really want to know how to implement sticky event with Rxbus. Any operator can reach it? I can't find any example for that, should i custom operator by .lift( )? If you feel it, what would you do?
I'm really really really confused. : (
Thanks.
Kalin Maldzhanski commented
you may what to use BehaviorSubject as RxHub middleman engine.
ex:
private final Subject<Object, Object> _bus = new SerializedSubject<>(BehaviorSubject.create());
you may also take a look into https://github.com/apptik/rxHub which was particularly built for Pub-Sub type of architecture.
Kaushik Gopal commented