Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue: explicitly document values are not safe for concurrent use
Users are regularly confused by data races or other panics caused by the concurrent use of the API in this package, particularly when making concurrent use of values. Even though Go APIs are generally not safe for concurrent use unless documented otherwise, per https://go.dev/issue/30632, it can be easy to forget that since concurrency is so common in Go. Add an explicit reminder about it, following our reasoning from the last time we discussed the current state of concurrency in the API. While here, make a few godoc link tweaks. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I8a7d3a5855e41781fb188adf79fd0bb4171d01e9 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1172256 Reviewed-by: Roger Peppe <rogpeppe@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
- Loading branch information