Skip to content

svc/windows: support closing via context.Done()#15

Merged
judwhite merged 1 commit into
judwhite:masterfrom
jehiah:ctx_done_windows_15
Feb 1, 2021
Merged

svc/windows: support closing via context.Done()#15
judwhite merged 1 commit into
judwhite:masterfrom
jehiah:ctx_done_windows_15

Conversation

@jehiah

@jehiah jehiah commented Dec 1, 2020

Copy link
Copy Markdown
Contributor

This provides support for closing a windows service, and a program running on windows via context.Done() matching non-windows functionality from #13

Closes #14

@jehiah

jehiah commented Dec 1, 2020

Copy link
Copy Markdown
Contributor Author

@judwhite oops oversight on my part for not including this in the first round - I don't have an environment to test this from so flying a little blind here, but from a read of the code i think this will work for running on windows (easy case) and running as a service (a few more moving parts).

@jehiah

jehiah commented Dec 22, 2020

Copy link
Copy Markdown
Contributor Author

@judwhite let me know if you have any feedback on this - or if you notice anything i need to adjust.

@judwhite

Copy link
Copy Markdown
Owner

@jehiah I think it looks good. I'm going to do some testing and hopefully get it merged/tagged in the next couple days. Thanks for the ping.

@jehiah

jehiah commented Jan 11, 2021

Copy link
Copy Markdown
Contributor Author

Hey @judwhite i want to follow up on this thread - Is there any additional work i can do here to help?

@judwhite

judwhite commented Feb 1, 2021

Copy link
Copy Markdown
Owner

@jehiah I'm going to add some tests before tagging this. Thanks for the change, I apologize for the delay

@judwhite
judwhite merged commit 4b193fa into judwhite:master Feb 1, 2021
@judwhite judwhite mentioned this pull request Feb 1, 2021
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

Successfully merging this pull request may close these issues.

Add Context.Done() handling for Windows Service

2 participants