Why is my promise not running synchronously?

后端 未结 2 1318
无人及你
无人及你 2021-01-24 17:15

Have looked around and can\'t quite find the answer. I am trying to run a promise which executes a fulfil statement once all facebook api pages have been iterated through and sa

2条回答
  •  无人共我
    2021-01-24 17:41

    You need to fullfil/resolve the value that you need from promise. Call the function fulfill with a value you that you need.For example if you want to resolve an array:

    fullfill(array);
    

提交回复
热议问题