支持优雅退出

This commit is contained in:
GoEdgeLab
2020-10-28 11:19:06 +08:00
parent 5b0ed31f2d
commit 4216f54ad3
19 changed files with 238 additions and 15 deletions

View File

@@ -0,0 +1,16 @@
package events
import "testing"
func TestOn(t *testing.T) {
On("hello", func() {
t.Log("world")
})
On("hello", func() {
t.Log("world2")
})
On("hello2", func() {
t.Log("world2")
})
Notify("hello")
}