diff options
Diffstat (limited to 'src/sync/waitgroup.go')
| -rw-r--r-- | src/sync/waitgroup.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sync/waitgroup.go b/src/sync/waitgroup.go index 9c6662d04b..9f26ae106c 100644 --- a/src/sync/waitgroup.go +++ b/src/sync/waitgroup.go @@ -17,6 +17,9 @@ import ( // Wait can be used to block until all goroutines have finished. // // A WaitGroup must not be copied after first use. +// +// In the terminology of the Go memory model, a call to Done +// “synchronizes before” the return of any Wait call that it unblocks. type WaitGroup struct { noCopy noCopy |
