This commit is contained in:
xing 2023-10-23 22:38:52 +08:00
parent 5273f4ecf9
commit 3fd4f412b1

View File

@ -255,12 +255,15 @@ func Push(fn func(), a ...any) {
}
func Reload() {
anyMap.Flush()
safetyMaps.Flush()
callsM.Flush()
flushMapFn.Flush()
slice.Sort(calls, func(i, j queue) bool {
return i.order > j.order
})
for _, call := range calls {
call.fn()
}
anyMap.Flush()
safetyMaps.Flush()
return
}