Home  >  Q&A  >  body text

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

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~

仅有的幸福仅有的幸福2662 days ago733

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-07-05 10:55:39

    Yes.

    reply
    0
  • Cancelreply