Function
resolve (value, label) Promise public
Module: | rsvp |
---|
Defined in node_modules/rsvp/lib/rsvp/resolve.js:3
import { resolve } from 'rsvp';
- value
- *
- value that the returned promise will be resolved with
- label
- String
- optional string for identifying the returned promise. Useful for tooling.
- returns
- Promise
- a promise that will become fulfilled with the given `value`
This is a convenient alias for Promise.resolve
.
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/functions/rsvp/resolve