Y
Hacker News
new
|
ask
|
show
|
jobs
by
val_deleplace
633 days ago
I tested with many concurrent goroutines, and confirmed that calling `unique.Make` does not cause any data race condition
1 comments
saylisteins
633 days ago
Thanks a lot! I also found this blog post where they mention it's thread safe thanks to using HashTrieMap internally
Link:
https://go.dev/blog/unique
link
val_deleplace
624 days ago
We agreed to make the threadsafeness more explicit in the documentation of the 'unique' package:
https://github.com/golang/go/issues/69637
link
Link: https://go.dev/blog/unique