MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / initialize

Function initialize

app/initializers/set-global-promise.js:3–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import RSVP from 'rsvp';
2
3export function initialize() {
4 // async/await is using window.Promise by default and we want async/await to
5 // use RSVP instead which is properly integrated with Ember's runloop
6 window.Promise = RSVP.Promise;
7}
8
9export default { initialize };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected