Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Toin1779712664 opened this issue May 17, 2024 · 1 comment
Open

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

Toin1779712664 opened this issue May 17, 2024 · 1 comment

Comments

@Toin1779712664
Copy link

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
Copy link

yossev commented Aug 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants