You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
491 B
19 lines
491 B
|
3 years ago
|
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);
|
||
|
|
}
|