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

More idiomatic Go concurrency #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 10, 2020

  1. Back to using semaphores removed by google#126.

    This solution is a bit more idiomatic and resonates with "Don't communicate by
    sharing memory, share memory by communicating." Go proverb[^1].
    
    Similar approach to use buffered channel as a semaphore to limit throughput is
    discussed in Effective Go[^2].
    
    [^1]: https://go-proverbs.github.io/
    [^2]: https://golang.org/doc/effective_go.html#channels
    yarcat committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    ba776bf View commit details
    Browse the repository at this point in the history