We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
By default, the "closePromises" are executed in parallel.
Add a syncClose option that allow end-user to have a "sync" shutdown to execute promises in series.
Ex:
[() => Promise1, () => Promise2, () => Promise3]
With the actual behavior, the result can be random:
- Promise1 - Promise2 - Promise3
or
- Promise2 - Promise1 - Promise3
- Promise3 - Promise1 - Promise2
and so on.
The goal is now to have :
- Promise1 - Promise2 (when Promise1 is finished whatever the reason) - Promise3 (when Promise2 is finished whatever the reason)
Also replace all Promise.all calls with Promise.allSettled to ensure all closePromises are called.
The text was updated successfully, but these errors were encountered:
feat: add ability to have sync close
db956e8
* Add syncClose boolean option Issue: #27
de79cad
gquittet
Successfully merging a pull request may close this issue.
By default, the "closePromises" are executed in parallel.
Add a syncClose option that allow end-user to have a "sync" shutdown to execute promises in series.
Ex:
With the actual behavior, the result can be random:
or
or
and so on.
The goal is now to have :
Also replace all Promise.all calls with Promise.allSettled to ensure all closePromises are called.
The text was updated successfully, but these errors were encountered: