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

feat(core): Allow to unregister services at runtime #2756

Merged
merged 2 commits into from
Sep 17, 2022
Merged

Conversation

daffl
Copy link
Member

@daffl daffl commented Sep 16, 2022

This pull request adds the ability to unregister a service dynamically by calling await app.unuse('servicename'). It will call the services teardown method and unregister all routes (for all transports).

Related to #446
Closes #2035

@marshallswain
Copy link
Member

marshallswain commented Sep 16, 2022

I like unuse for its explicit relationship to use.

:shipit:

@daffl daffl merged commit d16601f into dove Sep 17, 2022
@daffl daffl deleted the unregister-services branch September 17, 2022 01:12
@steffanhalv
Copy link

steffanhalv commented Sep 17, 2022

Finally 🥳

@daffl - When will this be published into a new pre-release? I have been waiting for this in a while :)

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.

Unregistering services at runtime
3 participants