We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi tetratelabs team, I am learning wasm-go from this example.
But I am worried about these two lines, which may change the slice at the same time.
https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/main/examples/postpone_requests/main.go#L62
https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/main/examples/postpone_requests/main.go#L89
For normal golang code, I need to use sync.Mutex.
sync.Mutex
It is safe in wasm-go? Why?
The text was updated successfully, but these errors were encountered:
Proxy-Wasm in general is single threaded, not Go specific.
Sorry, something went wrong.
Please read the doc before opening issue
No branches or pull requests
Hi tetratelabs team, I am learning wasm-go from this example.
But I am worried about these two lines, which may change the slice at the same time.
https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/main/examples/postpone_requests/main.go#L62
https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/main/examples/postpone_requests/main.go#L89
For normal golang code, I need to use
sync.Mutex
.It is safe in wasm-go? Why?
The text was updated successfully, but these errors were encountered: