Document concurrency mutex example

This commit is contained in:
dwrz
2026-10-27 12:41:06 +00:00
parent 0bc6a39163
commit 3dc29f36e5
+1
View File
@@ -27,6 +27,7 @@ func main() {
wg.Add(len(adjustments)) wg.Add(len(adjustments))
for _, adjustment := range adjustments { for _, adjustment := range adjustments {
// go = placed onto thread, not the stack.
go func(adjustment int) { go func(adjustment int) {
defer wg.Done() defer wg.Done()