为什么这段代码会产生DATA RACE呢?
为什么这段代码会产生DATA RACE呢? ```go // main.go package main import ( "fmt" "log" "sync" "time" ) type runner struct { mutableCh chan func() close chan struct{} } var pool = &sync.Pool{ New: func() interface{} { return ne...阅读全文
为什么这段代码会产生DATA RACE呢? ```go // main.go package main import ( "fmt" "log" "sync" "time" ) type runner struct { mutableCh chan func() close chan struct{} } var pool = &sync.Pool{ New: func() interface{} { return ne...阅读全文