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

Change Promise.all to Promise.allSettle for ease of error handling #1409

Open
satasuk03 opened this issue Jul 19, 2024 · 0 comments
Open

Change Promise.all to Promise.allSettle for ease of error handling #1409

satasuk03 opened this issue Jul 19, 2024 · 0 comments

Comments

@satasuk03
Copy link

const promise = Promise.all(data.map(item => {

In this case, if we send 100 mails at a time, but if a single mail is failed, all pending mails will be stopped.
In the other hand, it should send as much as possible and return the send result to the user (cb signature also need to be updated)

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

No branches or pull requests

1 participant