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
10.1 #75 Providing a wrong time duration should stop ticker, or cause leaks
ticker := time.NewTicker(1000) // should stop defer for { select { case <-ticker.C: // Do something } }
ticker := time.NewTicker(1000) defer ticker.Stop() for { select { case <-ticker.C: // Do something } }
The text was updated successfully, but these errors were encountered:
Thanks but this code is an excerpt (we don't see the whole function) and don't focus on the ticker so I don't consider it an issue.
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: