Skip to content

Main routine should call wg add.#10

Merged
ChezCrawford merged 1 commit intomasterfrom
corrects-wait-counter
Nov 11, 2020
Merged

Main routine should call wg add.#10
ChezCrawford merged 1 commit intomasterfrom
corrects-wait-counter

Conversation

@ChezCrawford
Copy link
Copy Markdown

@ChezCrawford ChezCrawford commented Nov 10, 2020

Calls wg.Add in the conventional location.

The main goroutine calls Add to set the number of goroutines to wait for. Then each of the goroutines runs and calls Done when finished.

https://golang.org/pkg/sync/#WaitGroup

@ChezCrawford ChezCrawford requested a review from dobs November 10, 2020 21:23
@ChezCrawford ChezCrawford merged commit 0d0abf7 into master Nov 11, 2020
@ChezCrawford ChezCrawford deleted the corrects-wait-counter branch November 11, 2020 00:46
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.

3 participants