Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circularArray is thread safe? #13

Closed
aadog opened this issue Jul 25, 2022 · 3 comments
Closed

circularArray is thread safe? #13

aadog opened this issue Jul 25, 2022 · 3 comments

Comments

@aadog
Copy link

aadog commented Jul 25, 2022

circularArray is thread safe?

@cuzfrog
Copy link
Owner

cuzfrog commented Aug 1, 2022

sorry, all basic collections are not thread-safe by design. Possibly I would not consider provide thread-safe implementations in the future. I'm not sure in Go, we should ensure thread safety at collection level. Maybe you could have a look at goroutine and isolate state access within a single goroutine, similar to Actor Pattern.

BTW, thanks

@aadog
Copy link
Author

aadog commented Aug 5, 2022

Thank you for your answer。
Your project is great, it just doesn't have concurrent versions,

I implemented a different list if you need it here.
https://github.com/aadog/dict-go

@aadog
Copy link
Author

aadog commented Aug 5, 2022

不过似乎大家都是国人,如果有可能并发版本似乎有效,因为它改变自gods

@cuzfrog cuzfrog closed this as completed Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants