Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
saylisteins
12 hours ago
|
parent
|
context
|
favorite
| on:
Interning in Go
Will this work across different goroutines?
val_deleplace
11 hours ago
|
next
[–]
I tested with many concurrent goroutines, and confirmed that calling `unique.Make` does not cause any data race condition
reply
saylisteins
8 hours ago
|
parent
|
next
[–]
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
reply
val_deleplace
12 hours ago
|
prev
[–]
Yes, the package is designed to be thread-safe
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: