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

Implement delayed actions #63

Merged
merged 1 commit into from
Mar 9, 2017
Merged

Conversation

Peque
Copy link
Member

@Peque Peque commented Mar 9, 2017

A self-contained change that could be added to master while we keep making other changes.

@Peque Peque added the feature label Mar 9, 2017
@Peque Peque added this to the 1.0.0 milestone Mar 9, 2017
@Peque Peque self-assigned this Mar 9, 2017
@Peque Peque requested a review from Flood1993 March 9, 2017 09:46
@codecov
Copy link

codecov bot commented Mar 9, 2017

Codecov Report

Merging #63 into master will decrease coverage by 0.14%.
The diff coverage is 100%.

@@            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
Impacted Files Coverage Δ
osbrain/common.py 100% <100%> (ø)
osbrain/agent.py 92.88% <100%> (+0.14%)
osbrain/nameserver.py 97.29% <0%> (-1.81%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35a869e...338b8b4. Read the comment docs.

@Peque Peque mentioned this pull request Mar 9, 2017
@Flood1993
Copy link
Member

Very nice code. Feel free to merge it into master @Peque ! 👍

Copy link
Member

@Flood1993 Flood1993 left a 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
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see 👍

@Peque Peque requested a review from Flood1993 March 9, 2017 16:01
action(*args)

Thread(target=wait).start()
event.stop = event.set
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see 👍

@Flood1993 Flood1993 merged commit 338b8b4 into opensistemas-hub:master Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants