配置加载成功后才启动某些任务

This commit is contained in:
GoEdgeLab
2021-09-16 15:58:10 +08:00
parent 4f01a19e76
commit 6201de75e9
5 changed files with 10 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ import (
var SharedValueQueue = NewValueQueue()
func init() {
events.On(events.EventStart, func() {
events.On(events.EventLoaded, func() {
go SharedValueQueue.Start()
})
}