Skip to content

Concurrency proverb #20

Open
Open

Description

@KernelDeimos

I suggest adding the following:

Always sync.WaitGroup if every goroutine must finish

I got a very confusing race condition changing an unbuffered channel to a buffered channel, as I was waiting for one goroutine to finish but ignoring the other.

Activity

  1. KernelDeimos commented on May 22, 2017

    @KernelDeimos
    Author

    I have an addition:

    Loop variables used in anonymous goroutines by lexical scoping will not be what you expect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions