From 6a026fd2b1818a7265d5904b5c1a800d2a21b21b Mon Sep 17 00:00:00 2001 From: demo Date: Sun, 24 May 2026 23:13:53 -0400 Subject: docs: add comment explaining wg.Wait It's a bit trite for now, but it'll do. --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') 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. -- cgit v1.2.3