resolve.js 484 B

1234567891011121314151617
  1. import Promise from './promise';
  2. /**
  3. This is a convenient alias for `RSVP.Promise.resolve`.
  4. @method resolve
  5. @static
  6. @for RSVP
  7. @param {*} value value that the returned promise will be resolved with
  8. @param {String} label optional string for identifying the returned promise.
  9. Useful for tooling.
  10. @return {Promise} a promise that will become fulfilled with the given
  11. `value`
  12. */
  13. export default function resolve(value, label) {
  14. return Promise.resolve(value, label);
  15. }