-
Notifications
You must be signed in to change notification settings - Fork 315
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
use separate thread for trapping signals #7
Conversation
This PR has passed 'Verify' and is ready for review and approval! |
1 similar comment
This PR has passed 'Verify' and is ready for review and approval! |
WHICH_SIGNAL.store(sig as usize, Ordering::SeqCst); | ||
} | ||
|
||
pub fn start() -> Handler { |
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 think the appropriate approach here is to pass in a sender/receiver from the caller instead of creating the sender/receiver here and returning the caller the sender to our receiver.
I'm wrestling with the borrower checker and lifetimes right now in hopes of having a better understanding. I might update this PR before merging it so we have this behaviour.
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 think you did this right. No reason for the caller to have to worry about the channels - this way it's all hidden under the hood. Feels right to me.
I'm 👍 on this. One thing I'm unsure of in my own fledgling rust-dom is where the idiomatic place to put a function is. We define a This code looks good to me, though. I would ship it, and we can noodle about style later. |
This PR has passed 'Verify' and is ready for review and approval! |
3 similar comments
This PR has passed 'Verify' and is ready for review and approval! |
This PR has passed 'Verify' and is ready for review and approval! |
This PR has passed 'Verify' and is ready for review and approval! |
@adamhjk ready for final review and merge |
One more thing - please squash your four commits to one, then I'll approve. |
coordinate with main loop over channels
This PR has passed 'Verify' and is ready for review and approval! |
use separate thread for trapping signals
@delivery approve |
Failed to approve change: 73e2b09b-1d3a-4c8d-9cda-fd9815f1c92c @adamhjk |
@delivery deliver |
Failed to deliver change: 73e2b09b-1d3a-4c8d-9cda-fd9815f1c92c |
@delivery approve |
Failed to approve change: 73e2b09b-1d3a-4c8d-9cda-fd9815f1c92c @adamhjk |
@delivery approve |
Failed to approve change: 73e2b09b-1d3a-4c8d-9cda-fd9815f1c92c @reset |
Restore builkite files
The purpose of this PR is two-fold:
This will be used to complete #5
/cc @adamhjk