JavaScript Promises - force promise to resolve

后端 未结 0 874
离开以前
离开以前 2021-02-19 04:58

Considering that I have the following:

const timeoutPromise = new Promise(resolve => setTimeout(resolve("Failure"), 5000));

const response = await P         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题