-
Notifications
You must be signed in to change notification settings - Fork 122
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
the example need more detail #1
Comments
@tsingson By "more detail", you mean more comments, or more examples? Maybe it's better to point out what was unclear :-) |
yet, more then one example, like two task ( via may be two func ) in timingwhell. thanks a lot for fast response. |
one more questions: the timingwheel is thread safe ? how use this in goroutine: init one global timingwheel only ? |
@tsingson I have updated the example a little. For your second question, yes the TimingWheel is concurrency-safe, you only need one TimingWheel instance. |
The issue has been closed automatically after the new commit is pushed, feel free to reopen it if necessary :) |
great design for golang timing .
but, v need more detail in example code ...
thanks a lot.
The text was updated successfully, but these errors were encountered: