-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix/networkidle review #603
Conversation
What's the benefit of doing this change over what we already have? I think we should work with what is backward compatible for now, and create a ticket to update to Go 1.19 specific things only if it enhances or solves a problem that we're facing. |
I'm not sure I understand your question. Are we discussing atomic vs. mutexes? If that's the case, an atomic counter (which you probably know already) is simpler, easier, and faster to concurrently count numeric data than a mutex. For, Go 1.19 stuff, I agree, so we can just use |
Sorry, I wasn't clear at all, i meant why use the Go 1.19 I think we need to make it very clear (low context) why the change/comment is being made (why it's worth considering -- i.e. explain why the change would be better than what it is now OR link to a go article/blog/docs which demonstrates the benefits). |
No worries. You can read more about it here.
IMHO, the most important benefit is this: "These (new) types hide the underlying values so that all accesses are forced to use the atomic APIs." |
5d23180
to
1b64c1f
Compare
Changed Go 1.19 |
1b64c1f
to
5d2bff2
Compare
Thanks @inancgumus for the suggestions and links to the resources! I've cherry-picked the commits (all but the
|
Served its purpose (#578). |
This one uses Go 1.19'satomic.Int64
, sotest-prev
(which is Go 1.18) fails... WDYT?