Go语言入门经典之阻塞和流程控制

BROVO · · 1138 次点击
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使用?没有接收者呀?
#1