[todo] [ee-core] subsequent optimization of emitLifecycle

This commit is contained in:
gaoshuaixing
2025-07-15 19:09:19 +08:00
parent 6e7528cc6e
commit c1f5b09cb4

View File

@@ -20,6 +20,7 @@ class EventBus {
}
// call lifecycle event
// [todo] 如果是一个 async 函数,且函数的运行时间比较长,如何正确执行
emitLifecycle(eventName, ...args) {
const eventFn = this.lifecycleEvents[eventName];
if (eventFn) {