javascript - new Promise(() => {}), if resolve or reject is not called, is it always in the pending state?
仅有的幸福
仅有的幸福 2017-07-05 10:53:39
0
1
768

new Promise(() => {}), if resolve or reject is not called, is it always in the pending state?

return new Promise(() => {})

It can have the effect of interrupting execution, but I don’t know if there are any disadvantages?

I hope those who know more can give some advice~

仅有的幸福
仅有的幸福

reply all(1)
淡淡烟草味

Yes.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template