-
Notifications
You must be signed in to change notification settings - Fork 43
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
Implement delayed actions #63
Conversation
Codecov Report
@@ Coverage Diff @@
## master #63 +/- ##
==========================================
- Coverage 96.03% 95.88% -0.15%
==========================================
Files 7 7
Lines 857 875 +18
Branches 121 124 +3
==========================================
+ Hits 823 839 +16
- Misses 25 26 +1
- Partials 9 10 +1
Continue to review full report at Codecov.
|
Very nice code. Feel free to merge it into master @Peque ! 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a doubt.
action(*args) | ||
|
||
Thread(target=wait).start() | ||
event.stop = event.set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what it does... Could you explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That line simply allows you to use timer.stop
instead of timer.set
, which I think is more intuitive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see 👍
action(*args) | ||
|
||
Thread(target=wait).start() | ||
event.stop = event.set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see 👍
A self-contained change that could be added to master while we keep making other changes.