@milestones/core integration for Ember.js
npm install @milestones/emberThe @milestones/ember addon integrates with the Ember runtime and ember-cli to provide zero-config setup for working with milestones.
Full documentation can be found at https://salsify.github.io/milestones/docs/ember.
All milestones are configured by @milestones/ember to use RSVP for their promise implementation, ensuring that any code that executes as a result of a milestone occurs within a runloop.
By default, milestones will be stripped from your code in production builds using @milestones/babel-plugin-strip-milestones. This behavior is always controlled by the host application, and it can be overridden in the host's ember-cli-build.js.
``ts`
let app = new EmberApp(defaults, {
milestones: {
stripMilestones: false, // or whatever your preference
},
});
If ember-concurrency` is present in your project, any milestones you create will be task-like promises that will bubble cancelation appropriately. They will also be cancelable from your test code.