Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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 force-pushed the unregister-services branch from 1474c46 to f2f35c4 Compare September 16, 2022 23:56
@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 :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unregistering services at runtime
3 participants