Skip to main content

Promise.any

Less than 1 minutefeaturees-proposalmissing-example

Promise.anyopen in new window

Types

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>;
}

Entry points

core-js/proposals/promise-any