I have this peculiar problem and am unable to resolve this.There is an API call that executes a function that does something asynchronously and returns a Promise ( I am using async/await to wait for this result)If there is another API call to the same function before it's execution, there is an error and the request fails. I could always write retry logic but I want to somehow make the other function calls wait until this promise from the first call is resolved.How could I achieve that?Thanks :)
Submitted June 04, 2019 at 06:42AM by kjroger94
No comments:
Post a Comment