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
async_op_result.go if aor.hasReturnedObj == 1 { aor.doComplete() } 改为 if atomic.LoadInt32(&aor.hasReturnedObj) == 1 { aor.doComplete() } 会不会更好
The text was updated successfully, but these errors were encountered:
因为前面的判断逻辑做了CAS了,所以这里其实用不用atomic都是可以的,不过改成atomic让语法统一是个不错的建议,欢迎pr~
Sorry, something went wrong.
已调整~
感谢!!
No branches or pull requests
async_op_result.go
if aor.hasReturnedObj == 1 {
aor.doComplete()
}
改为
if atomic.LoadInt32(&aor.hasReturnedObj) == 1 {
aor.doComplete()
}
会不会更好
The text was updated successfully, but these errors were encountered: