摘要: 想用Promise.allSettled,但又不想升级tsconfog.json下的lib属性,可以这样模拟: const allSettled = async (promises: Promise<any>[]) => { const p2 = promises.map((promise) => 阅读全文
posted @ 2021-11-10 17:10 西河 阅读(21) 评论(0) 推荐(0) 编辑