Skip to content Skip to sidebar Skip to footer

Promise Not Waiting To Finish

I looked at many examples today. They seem to suggest that the following code should be executed in chain: let f = () => { return new Promise((res, rej) => { cons

Solution 1:

try then(f) instead of then(f())

then expects a function.

you can also do then(()=>f())

Post a Comment for "Promise Not Waiting To Finish"