鸿蒙系统中的 Promise 缺少下面的静态构造方法
Promise.any()Takes an iterable of promises as input and returns a single Promise. This returned promise fulfills when any of the input’s promises fulfill, with this first fulfillment value. It rejects when all of the input’s promises reject (including when an empty iterable is passed), with an AggregateError containing an array of rejection reasons. 怎么回事?
本文参与了 【 HarmonyOS NEXT 技术问答冲榜,等你来战!】欢迎正在阅读的你也加入。
ArkTS中禁止使用any类型
ts到arkts适配规则可参考https://developer.huawei.com/consumer/cn/doc/harmonyos-guides...
本文参与了 【 HarmonyOS NEXT 技术问答冲榜,等你来战!】欢迎正在阅读的你也加入。