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

tour: Improve concurrency example #16

Open
xlr-8 opened this issue May 12, 2016 · 0 comments
Open

tour: Improve concurrency example #16

xlr-8 opened this issue May 12, 2016 · 0 comments

Comments

@xlr-8
Copy link

xlr-8 commented May 12, 2016

Context: https://tour.golang.org/concurrency/5

It took me a bit of time to understand what was going on on this step.

Until I realized that the go func() was actually waiting for the Fibonacci sequence function to send information to the channel, and was also stopping it by sending something into quit.

I simply added some print to figure this out, but I guess it might be worth improving the description or code snippet.

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

1 participant