Closed bernard-turing closed 5 years ago
You can use a timeout but in your example you would need to make sure that you don't call done before.
So you can remove then(() => done())
and put a done
inside the catch. You are also missing the second parameter of the setTimeout, how much time do you want to wait?
Thank you @cesarp, it is working now.
How can I use dispatch inside setTimeout?