top | item 41592733 (no title) saylisteins | 1 year ago Will this work across different goroutines? discuss order hn newest val_deleplace|1 year ago I tested with many concurrent goroutines, and confirmed that calling `unique.Make` does not cause any data race condition saylisteins|1 year ago Thanks a lot! I also found this blog post where they mention it's thread safe thanks to using HashTrieMap internallyLink: https://go.dev/blog/unique load replies (1) val_deleplace|1 year ago Yes, the package is designed to be thread-safe
val_deleplace|1 year ago I tested with many concurrent goroutines, and confirmed that calling `unique.Make` does not cause any data race condition saylisteins|1 year ago Thanks a lot! I also found this blog post where they mention it's thread safe thanks to using HashTrieMap internallyLink: https://go.dev/blog/unique load replies (1)
saylisteins|1 year ago Thanks a lot! I also found this blog post where they mention it's thread safe thanks to using HashTrieMap internallyLink: https://go.dev/blog/unique load replies (1)
val_deleplace|1 year ago
saylisteins|1 year ago
Link: https://go.dev/blog/unique
val_deleplace|1 year ago