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

feature: support async plugin.stop implementation #1804

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

tkurki
Copy link
Member

@tkurki tkurki commented Oct 1, 2024

Fixes #1802

Add support for plugins returning a Promise from their stop implementation to allow async stop operations. In plugin restarts, mainly when changing configuration, we wait for the optional stop Promise to resolve before calling plugin.start().

Fixes #1802

Add support for plugins returning a Promise from their stop
implementation to allow async stop operations. In plugin restarts,
mainly when changing configuration, we wait for the optional stop
Promise to resolve before calling plugin.start().
@tkurki tkurki requested a review from panaaj October 1, 2024 20:03
@tkurki tkurki added the feature label Oct 1, 2024
@tkurki tkurki merged commit df59acf into master Oct 6, 2024
4 of 5 checks passed
@tkurki tkurki deleted the plugin-stop-promise-support branch October 6, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin.start may be called before plugin.stop if stopping includes async operations
2 participants