跳至主要內容

Promise.any

小于 1 分钟featurees-proposalmissing-example

Promise.anyopen in new window

类型

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