Promise resolved runs before main process finished
I have two function which have different process time, lets say one() takes 1 second, two() takes 0.3 second. I trying to run function one() runs first and then do function two() using promise. in my code i set two() as resolved, but actually its runs function two() before one() finished.