blob: 465d0813a18b6cf426519b7716dc3f67b00a09c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// +build ignore
package main
import "time"
func after() {}
func main() {
// @calls time.startTimer -> time.sendTime
ticker := time.NewTicker(1)
<-ticker.C
// @calls time.startTimer -> time.sendTime
timer := time.NewTimer(time.Second)
<-timer.C
// @calls time.startTimer -> time.goFunc
// @calls time.goFunc -> main.after
timer = time.AfterFunc(time.Second, after)
<-timer.C
}
// @calls time.sendTime -> time.Now
|