How to avoid the explicit Promise construction antipattern and use chaining and promise composition?

前端 未结 0 677
执笔经年
执笔经年 2020-12-12 18:59

I have written a pretty simply script:

{
   waiting: false,

   async handleWaiting(promise, timeout) {
       return new Promise((res, rej) => {
                  


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