package time
import "errors"
// A Ticker holds a channel that delivers `ticks' of a clock
// at intervals.
type Ticker struct {
C <-chan Time // The channel on which the ticks are delivered.
r runtimeTimer
}
刚刚翻到time源码,声明了一个通道,原来如此,但是为什么这样使用<-t.C使用?没有接收者呀?
最近的评论