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

Is the standard multierror.Error type thread-safe? #93

Open
assembly-winston opened this issue Feb 8, 2024 · 1 comment
Open

Is the standard multierror.Error type thread-safe? #93

assembly-winston opened this issue Feb 8, 2024 · 1 comment

Comments

@assembly-winston
Copy link

If I have a bunch of goroutines adding to the same multierror.Error type, would this cause problems if I don't wrap it with a mutex?

@weiwongfaye
Copy link

weiwongfaye commented Apr 5, 2024

the behaviour will be the same like you use slice in multiple goroutines, there will be data race and cause unexpected result.

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