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

Question: Accessing a goka.View concurrently? #53

Closed
jimrobinson opened this issue Nov 3, 2017 · 2 comments · Fixed by #69
Closed

Question: Accessing a goka.View concurrently? #53

jimrobinson opened this issue Nov 3, 2017 · 2 comments · Fixed by #69

Comments

@jimrobinson
Copy link

I'm looking around in the documentation and I can't spot anything that talks about concurrency and goka.View. If I've initialized a goka.View may I access it concurrently, or must I either use a mutex or dedicated goka.View per goroutine?

@frairon
Copy link
Contributor

frairon commented Nov 3, 2017

Hi jimrobinson,
you're right the documentation does not mention concurrency issues for accessing the view.
Nevertheless it is safe to query data from Views as the underlying storage takes care of synchronizing the requests.
We have to refine at least the readme or code comments in that regard, so I'll leave the issue open for now.
Thanks for the hint :)

@jimrobinson
Copy link
Author

Great, thank you for the quick answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants