const fn = async () => { throw new Error(); }; try { const result = await timeout(fn(), 1000); }catch(e) { // error or timeout? } The ...
確定! 回上一頁