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

Add shutdown method for Service object #75

Merged
merged 4 commits into from
Dec 18, 2019

Conversation

HiroIshida
Copy link
Contributor

I added shutdown method for service object. Without this, one has to restart a Julia session all the time when the callback function of a Service is modified, which is time-consuming because compilation will start over again.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 91.737% when pulling 9d6efbe on HiroIshida:add_service_shutdown into 8e06b41 on jdlangs:master.

@coveralls
Copy link

coveralls commented Dec 12, 2019

Coverage Status

Coverage decreased (-0.1%) to 91.805% when pulling 48bffa5 on HiroIshida:add_service_shutdown into 8e06b41 on jdlangs:master.

Copy link
Owner

@jdlangs jdlangs left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! If you're able to make the one small change below, I'm happy to accept the PR.

src/services.jl Outdated
Shut down the specified service.
"""
function shutdown(s::Service{ST}) where ST <: AbstractService
pycall(s.srv_obj["shutdown"], Nothing)
Copy link
Owner

Choose a reason for hiding this comment

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

PyCall has deprecated this style of accessing functions, the preferred style is simply s.srv_obj.shutdown

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your review! I fixed the style.

@jdlangs jdlangs merged commit 73e79aa into jdlangs:master Dec 18, 2019
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.

None yet

3 participants