EventBus icon indicating copy to clipboard operation
EventBus copied to clipboard

ThreadMode MAIN_ORDERED: poster not decoupled if not Android

Open greenrobot-team opened this issue 8 years ago • 2 comments

Currently, when using @Subscribe(threadMode = MAIN_ORDERED) in a plain-Java (not Android) project, the event is posted directly, blocking the posting thread.

Expected: the event is queued and the post call is non-blocking, decoupling the poster from the subscriber.

This likely requires using an internal queue to store and deliver events in the order they were posted.

Reference: #307 #308 -ut

greenrobot-team avatar Sep 19 '17 09:09 greenrobot-team

Any news about decoupling poster from subscriber in plain java? Thanks a lot.

patton73 avatar Jan 02 '18 11:01 patton73

Use threadMode = Async and they will be uncoupled.

william-ferguson-au avatar Jan 02 '18 12:01 william-ferguson-au