-
Notifications
You must be signed in to change notification settings - Fork 41
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
'Close' should shutdown application even when there are plugins being processed #59
Comments
Adapted proposal:
|
I didn't understand the difference. Could you get more in detail?
But what happens when a plugin called |
The callback of the plugin needs to be called, and all the plugins up to that point called. The whole concept of avvio is avoiding race conditions and provide a dependable boot/close lifecycle. Anyway, why do you want to call close while loading a plugin? |
Always good to talk about it. I think I misused the api. The error handling should always be done by the I intend to close my application due to a critical error of the client driver. The done callback was not called because an error was emitted and I tried to close the app. |
The
close
implementation should be simplified.close
should not start the queue.close
should shutdown the application anyway in its current stateProposal
A plugin should be able to close the application with
close()
regardless in which phase the application is in. This is very important to ensure a graceful shutdown.When
close()
is called only the close queue should proceed and an error will pass when the ready queuereadyQ.idle()
returnsfalse
.The text was updated successfully, but these errors were encountered: