GoesToEleven / GolangTraining

Training for Golang (go language)
Other
9.83k stars 3.59k forks source link

the c:=make(chan int) is not chan buffer #77

Open Toin1779712664 opened 4 months ago

Toin1779712664 commented 4 months ago

https://github.com/GoesToEleven/GolangTraining/blame/f9a4f6cf39399a951f1b26875ed5aeee34aafb21/22_go-routines/09_channels/02_n-to-1/04_semaphore_wrong-way/main.go#L9

c:=make(chan int,20) // 20 buffer

yossev commented 1 month ago

isn't that an unbuffered channel or am i mistaken?