Skip to content

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

Merged
daffl merged 2 commits into
dovefrom
unregister-services
Sep 17, 2022
Merged

feat(core): Allow to unregister services at runtime#2756
daffl merged 2 commits into
dovefrom
unregister-services

Conversation

@daffl
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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