Promise.any
小于 1 分钟
Promise.any
类型
class AggregateError extends Error {
constructor(errors: Iterable<Error>, message?: string, { cause: any }?);
errors: Array<Error>;
message: string;
cause: any;
}
interface PromiseConstructor {
any<T>(promises: Iterable<Promise<T>>): Promise<T>;
}
入口点
core-js/proposals/promise-any