
In the previous posts of this series, I've shown the resolve and reject methods of a Promise and also how to retrieve data from a Promise using Pro...
For further actions, you may consider blocking this person and/or reporting abuse
You not mentioned
Promise.race()
.Now it's added. :)
Yes, I didn't mention that, I've mentioned these three because these are used most commonly. There are other methods as well , will mention them later.
There's this one too:
developer.mozilla.org/en-US/docs/W...
Yeah.. thank you.. will include that also later
I'm use Promise.race to add timeouts to fetch calls, to make sure the calls don't remain hanged up connections open.
Not mentioned
Promise.allSettled()
This is a good one. Thanks for sharing.
You're welcome. Keep following for more posts...
Nice explaination :) Thank you for putting the post
My pleasure.. Keep following for more posts..
More
what happen with other promise in race condition ?