关于读取后触发写模块
func main(){
...
go lp.read.Read(lp.chanRead)
go lp.Process()
go lp.write.Write(lp.chanWrite)
time.Sleep(10 * time.Second)
...
}在main函数中开启goroutine 执行了 read、process、write三个方法,process、write方法只执行了一次。
为何每次读到新数据,都会再次触发 lp.Process() 和 lp.write.Write() ?