- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleTick (0.21 sec)
-
src/time/example_test.go
case <-time.After(10 * time.Second): fmt.Println("timed out") } } func ExampleSleep() { time.Sleep(100 * time.Millisecond) } func statusUpdate() string { return "" } func ExampleTick() { c := time.Tick(5 * time.Second) for next := range c { fmt.Printf("%v %s\n", next, statusUpdate()) } } func ExampleMonth() { _, month, day := time.Now().Date()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 01:05:00 UTC 2024 - 22.4K bytes - Viewed (0)