Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gophergopher
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
gophergopher
8y ago
Version 1.9 introduced the sync.Map https://golang.org/pkg/sync/#Map Would using a sync.WaitGroup and closure be wrong? Is mutex better for shared memory?
2.
▲
by
gophergopher
8y ago
Why does this race? After setting done = true, is there no guarantee that the goroutine will complete before the for loop ends?