Created
September 30, 2020 12:12
-
-
Save alexewerlof/4911c7c3b5b05d51925c3a70f9306b10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fails as soon as one of the map functions fails | |
const results = await Promise.all(array.map(asynMapFunction)) | |
// Continues running even if one map function fails | |
const results = await Promise.allSettled(array.map(asynMapFunction)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment