setTimeout (() => reject(new Error('timed out')), 10000); ... In Node.js, a better way if implementing a Promise.race -based timeout would be ...
確定! 回上一頁