gf/.example/os/gtimer/gtimer-batch.go

19 lines
215 B
Go

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