summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-24 23:13:53 -0400
committerdemo <demo@antix1>2026-05-24 23:13:53 -0400
commit6a026fd2b1818a7265d5904b5c1a800d2a21b21b (patch)
tree9641168e502fc46dc38c212c69d389ebf61da7fc /main.go
parent2c799ed7ac9b7e2d2133a6b46a68d373ea85930d (diff)
docs: add comment explaining wg.Wait
It's a bit trite for now, but it'll do.
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index feb3dfe..3b46af5 100644
--- a/main.go
+++ b/main.go
@@ -40,6 +40,8 @@ loop:
// p-channels (p1, p2, etc.)
close(p0)
+ // Wait for all of the in-flight player goroutines to
+ // finish. You need this!
wg.Wait()
// If any of these prints out, we know we did something wrong.