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