Slide 44
Slide 44 text
channelͩͱ؆୯
func heavy(queue <-chan string) {
url := <-queue
// ϦΫΤετॲཧ
}
func main() {
queue := make(chan string, 32)
for i := 0; i < 3; i++ {
go heavy(queue)
}
queue <- “https://google.co.jp”
queue <- “https://google.com”
// লུ
}