Skip to content

[pull] master from facebook:master#792

Merged
pull[bot] merged 1 commit intomiqdigital:masterfrom
facebook:master
Mar 10, 2020
Merged

[pull] master from facebook:master#792
pull[bot] merged 1 commit intomiqdigital:masterfrom
facebook:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Mar 10, 2020

See Commits and Changes for more details.


Created by pull[bot]. Want to support this open source service? Please star it : )

Summary:
There is a newer API, `Promise.allSettled()`, that is similar to `Promise.all()`,
though it gives the caller more flexibility in dealing with rejected promises:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled

I would like to use this in my own code, so I am adding a Flow definition.
I modeled this after the type definition for `Promise.all()`, which seemed to
work nicely.

Reviewed By: nmote

Differential Revision: D20342965

fbshipit-source-id: 7d91cb412d831322a5d6e4b27ba78e3a84c00378
@pull pull bot added the ⤵️ pull label Mar 10, 2020
@pull pull bot merged commit efc59d3 into miqdigital:master Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant