2 ms·
It's useful if you want to schedule a function every x seconds: for range time.Tick(1 * time.Second) { fmt.Println("tick") }
by rakoo 12y ago
It's useful if you want to schedule a function every x seconds:
for range time.Tick(1 * time.Second) {
fmt.Println("tick")
}