-
Notifications
You must be signed in to change notification settings - Fork 58
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
Upcoming changes in Go 1.23 #84
Comments
"the timer channel associated with a Timer or Ticker is now unbuffered, with capacity 0." seems like a problem on first read. We can't quickly iterate over multiple expirations during So, there is no obvious way without an API modification. So what should the API do? Some options:
I'll have to think on this for a while, but suggestions welcome. I don't think Option 2 is right. Option 1 is easy, but not user friendly. Option 4 is likely what most users expect. |
More thoughts: I think it is reasonable to offer 2 versions to the caller, a blocking and non-blocking version, #1 and #4 above.
I was thinking... |
https://tip.golang.org/doc/go1.23#timer-changes
The text was updated successfully, but these errors were encountered: