Skip to content
Advertisement

Promise never gets resolved in javascript

I have a asyn function in which I call another function that return a promise and also calls to another async function. Here is the code:

JavaScript

since I have some asynchronous code to execute so I cannot invoke resolve() directly. so I use call back

JavaScript

and the animate function itself is async doing a bunch of asynchronous stuff

JavaScript

But the fullfiled() is not doing its work and not resolving. Pls help

Advertisement

Answer

I think your resolve never getting called so you have to try like that:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement