Function

reject (reason, label) Promise public

Module: rsvp
import { reject } from 'rsvp';
reason
*
value that the returned promise will be rejected with.
label
String
optional string for identifying the returned promise. Useful for tooling.
returns
Promise
a promise rejected with the given `reason`.

This is a convenient alias for Promise.reject.

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/functions/rsvp/reject