gf/geg/os/gtimer/gtimer-batch.go
2019-04-11 23:07:22 +08:00

18 lines
214 B
Go

package main
import (
"fmt"
"github.com/gogf/gf/g/os/gtimer"
"time"
)
func main() {
for i := 0; i < 100000; i++ {
gtimer.Add(time.Second, func() {
})
}
fmt.Println("start")
time.Sleep(48*time.Hour)
}