we are using following same thread selection boilerplate code in all the places where we are using the event bus observeOn(AndroidSchedulers.mainThread()).subscribeOn(Schedulers.io()), may be we can move these couple of lines inside the RxEventBus class, may be inside the init block or post method
we are using following same thread selection boilerplate code in all the places where we are using the event bus
observeOn(AndroidSchedulers.mainThread()).subscribeOn(Schedulers.io())
, may be we can move these couple of lines inside theRxEventBus
class, may be inside theinit block
orpost
method