improve
This commit is contained in:
parent
5273f4ecf9
commit
3fd4f412b1
|
@ -255,12 +255,15 @@ func Push(fn func(), a ...any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Reload() {
|
func Reload() {
|
||||||
|
anyMap.Flush()
|
||||||
|
safetyMaps.Flush()
|
||||||
|
callsM.Flush()
|
||||||
|
flushMapFn.Flush()
|
||||||
slice.Sort(calls, func(i, j queue) bool {
|
slice.Sort(calls, func(i, j queue) bool {
|
||||||
return i.order > j.order
|
return i.order > j.order
|
||||||
})
|
})
|
||||||
for _, call := range calls {
|
for _, call := range calls {
|
||||||
call.fn()
|
call.fn()
|
||||||
}
|
}
|
||||||
anyMap.Flush()
|
return
|
||||||
safetyMaps.Flush()
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user