Skip to content
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

Closed
tsingson opened this issue Oct 9, 2018 · 5 comments
Closed

the example need more detail #1

tsingson opened this issue Oct 9, 2018 · 5 comments

Comments

@tsingson
Copy link

tsingson commented Oct 9, 2018

great design for golang timing .
but, v need more detail in example code ...

thanks a lot.

@RussellLuo
Copy link
Owner

@tsingson By "more detail", you mean more comments, or more examples?

Maybe it's better to point out what was unclear :-)

@tsingson
Copy link
Author

tsingson commented Oct 9, 2018

yet, more then one example, like two task ( via may be two func ) in timingwhell.

thanks a lot for fast response.

@tsingson
Copy link
Author

tsingson commented Oct 9, 2018

one more questions: the timingwheel is thread safe ? how use this in goroutine: init one global timingwheel only ?

@RussellLuo
Copy link
Owner

@tsingson I have updated the example a little.

For your second question, yes the TimingWheel is concurrency-safe, you only need one TimingWheel instance.

@RussellLuo
Copy link
Owner

The issue has been closed automatically after the new commit is pushed, feel free to reopen it if necessary :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants