Mohith Gupta
Oct 27, 2023

Good one, but I have some doubts:
1) In implementing myresolve and myreject why are we returning promises again instead of values/error directly?
2) In the implementation of promises.allsettled() you are never rejecting anything becuase you have always returned rs(res) but never rj(something)), so are we assuming this method never rejects ?
Please let me know if I misunderstood something, Thank you!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Mohith Gupta
Mohith Gupta

Written by Mohith Gupta

A Better Person than Yesterday, I guess? In the process of Learning

No responses yet

Write a response