This commit is contained in:
kevin
2020-11-06 12:25:48 +08:00
parent f87d9d1dda
commit 7d7cb836af

View File

@@ -82,6 +82,7 @@ func (pe *PeriodicalExecutor) Sync(fn func()) {
}
func (pe *PeriodicalExecutor) Wait() {
pe.Flush()
pe.wgBarrier.Guard(func() {
pe.waitGroup.Wait()
})