setup-java/node_modules/rsvp/lib/rsvp/resolve.js
Stephen Franceschelli c1a589c5b6 Fix.
2019-07-30 13:41:05 -04:00

18 lines
491 B
JavaScript

import Promise from './promise';
/**
This is a convenient alias for `Promise.resolve`.
@method resolve
@public
@static
@for rsvp
@param {*} value value that the returned promise will be resolved with
@param {String} [label] optional string for identifying the returned promise.
Useful for tooling.
@return {Promise} a promise that will become fulfilled with the given
`value`
*/
export default function resolve(value, label) {
return Promise.resolve(value, label);
}