Open ice-coffee opened 3 years ago
i think they are two different problems.
In source code, BackgroundPoster and HandlerPoster use PendingPostQueue to store events, but in EventBus use ArrayList to store events. Why not use the same queue as Handler?
the reason of use arraylist is it only need to store the events , and traverse the eventTypes to get the event ,then give the event to subscriptionsByEventType ,finally get the subscriptionList.
he don't have to keep the order of first-in first-out.
In source code, BackgroundPoster and HandlerPoster use PendingPostQueue to store events, but in EventBus use ArrayList to store events. Why not use the same queue as Handler?