Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#77·GolangTraining

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

Author: Toin1779712664Created May 17, 2024Updated Aug 1, 2024

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

Source: GoesToEleven/GolangTraining

View original on GitHubView discussion on GitHub