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

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

We agreed to make the threadsafeness more explicit in the documentation of the 'unique' package: https://github.com/golang/go/issues/69637