ref[event]: rename submit to post

This commit is contained in:
godotg committed 2023-03-07 17:36:07 +08:00
1 parent ba3a074d61
commit 6658ecaa1a
7 files changed
+10 -10

No files matched your search

@@ -97,7 +97,7 @@ public abstract class EventBus {
/**
* Publish the event
*/
public static void submit(IEvent event) {
public static void post(IEvent event) {
doSubmit(event, receiverMapSync.get(event.getClass()));
doSubmit(event, receiverMapAsync.get(event.getClass()));
}
@@ -33,7 +33,7 @@ public class ApplicationTest {
var context = new ClassPathXmlApplicationContext("application.xml");
// see receiver method of MyController1 and MyController2
EventBus.submit(MyNoticeEvent.valueOf("我的事件"));
EventBus.post(MyNoticeEvent.valueOf("我的事件"));
ThreadUtils.sleep(3000);
}