-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
Milestone
Description
The DefaultEventBus is making poor choices in where to publish events.
- The immediate
publishmethod publishes to the EDT. Thus if the result of this publish tries to do something on the EDT it will deadlock. - The
publishLatermethod usesThreadService.run, which runs on an arbitrary thread. Thus subsequentpublishLatercalls are not guaranteed to execute in a consistent order.
To resolve this issue, we should have a dedicated SciJava event-processing thread which runs all EventBus publications.