Skip to content

Simplify code #28

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

Closed
wants to merge 1 commit into from
Closed

Simplify code #28

wants to merge 1 commit into from

Conversation

gbbr
Copy link

@gbbr gbbr commented Jul 8, 2015

Not sure if there was any purpose in having your version as it was, but this should simplify it.

Not sure if there was any purpose in having your version as it was, but this should simplify it.
@neelance neelance closed this Jul 8, 2015
@neelance
Copy link
Member

neelance commented Jul 8, 2015

Your change is valid, it's just that the purpose is to show that one should wrap the blocking code into a go statement. Maybe this would be better:

  go func() {
    [...]
    someBlockingFunction()
    [...]
  }()

What do you think?

neelance added a commit that referenced this pull request Jul 8, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants