proposal-promise-settle:此存储库尚在开发中,尚未寻求反馈

时间:2024-05-18 22:11:05
【文件属性】:

文件名称:proposal-promise-settle:此存储库尚在开发中,尚未寻求反馈

文件大小:28KB

文件格式:ZIP

更新时间:2024-05-18 22:11:05

JavaScript

提议: Promise.settle & AggregateError 该存储库尚在开发中,尚未寻求反馈。 例子 let results = await Promise . settle ( [ Promise . resolve ( 1 ) , Promise . reject ( new Error ( 'one' ) ) , Promise . resolve ( 2 ) , Promise . reject ( new TypeError ( 'two' ) ) , ] ) ; results ; // => { fulfilled: [1, 2], rejected: [Error, TypeError] } if ( results . rejected . length ) { throw new AggregateError ( results . r


【文件预览】:
proposal-promise-settle-master
----.gitignore(19B)
----README.md(4KB)
----package.json(380B)
----index.js(871B)
----.flowconfig(58B)
----test.js(1KB)
----yarn.lock(90KB)

网友评论