Promise<T>.error constructor

const Promise<T>.error(
  1. Object? error
)

Implementation

const factory Promise.error(Object? error) = PromiseError<T>;