![]() ![]() A interactor can return a BusObservable instance and subscribers can directly be subscribed to this observable the observable is the contract itself as it defines the Bus, the Channel and also the data that will be emitted. Autobus accomplishes this task with BusObservable API. Explicit contract between subscribers and emittersĪs one of the common use case of Event Buses is the communication between interactors (asynchronous core operations of an app) and presenters (adapters between views and interactors) it is desirable to maintain an explicit definition or contract between the emitters and the subscribers.Listening to channel C and expecting data of any class are notified. When an emitter sends data ofĬlass D to a channel C, every subscriber listening to channel C and expecting data of class D is notified. Of data) and emitters can send data of a concrete class (or no data at all) to a concrete channel. ![]() This approach is valid but it is quite inflexible.Īutobus allows representing channels as Strings andĭata as a separate class this way a subscriber can listen to a channel expecting a concrete class of data (or even Any class We developed our own Event Bus to cover two main needs that aren't covered by existing libraries:īoth Otto and EventBus use Events (defined classes) to carry data and also to represent the channel the subscribersĪre listening to. It is based on concepts from Otto, EventBus and RxJava.įor usage instructions please see Autobus website. ![]() It appears, from my armchair at least, that the expected difference in results has been achieved.More seriously, is anyone (at the state or federal levels) looking at this? Can you imagine if there was an 'aircraft bbq' every couple of weeks/months at the same airport (given all these bus events on the same roadway) that people wouldn't be going nuts demanding safety upgrades? Commercial airline safety is well under control by the National Transportation Safety Board.An enhanced event bus intended to allow communication between decoupled parts of an application. (Even if this was not a commercial bus, the point still stands - we have had plenty of commercial bus flame-ups recently.) From a regulatory standpoint, too, I would be surprised to learn that the regulations concerning commercial bus maintenance are anything like those for, say, commercial aircraft. If there is an increase, what is causing it.My unsubstantiated belief (at this point) is that this $1 bus fare race to the bottom is having the obvious effect - maintenance is being cut back to preserve profit. Is this happening more frequently, or are we just hearing about it more (I think the former, after all, this isn't the type of thing that goes on in the shadows) 2. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |