Register("topic",func(){
fmt.Println("Hello YEventBus")
})
Send("topic")
Register("topic",func(str_1_,str_2_ string){
fmt.Println("Hello",str_1_,str_2_)
})
Send("topic")
会输出"Hello"
Send("topic","YEventBus")
会输出"HelloYEventBus"
Send("topic","YEventBus","Again")
会输出"HelloYEventBus Again"
1.需要加上死循环检测
2.可能会增加异步功能