NewEventBus 创建新的事件总线(使用默认配置)
()
| 59 | |
| 60 | // NewEventBus 创建新的事件总线(使用默认配置) |
| 61 | func NewEventBus() *EventBus { |
| 62 | return NewEventBusWithConfig(DefaultEventBusConfig()) |
| 63 | } |
| 64 | |
| 65 | // NewEventBusWithConfig 创建带配置的事件总线 |
| 66 | func NewEventBusWithConfig(config *EventBusConfig) *EventBus { |