oleiade / lane

Generic PriorityQueues, Queues, Stacks, and Deque data structures for Go
https://pkg.go.dev/github.com/oleiade/lane#pkg-types
MIT License
877 stars 76 forks source link

Thread safety clarification #25

Open mcandre opened 4 years ago

mcandre commented 4 years ago

Are these data structures safe to manipulate from multiple goroutines, or should we use explicit channels / locks to enforce thread safety?