This is not a core part of ember-resources, but is an example utility to demonstrate a concept when authoring your own resources. However, this utility is still under the broader library's SemVer policy.
A consuming app will not pay for the bytes of this utility unless imported.
uses Resource to make ember-concurrency tasks reactive.
Note
ember-resources does not provide or depend on ember-concurrency.
If you want to use task, you'll need to add ember-concurrency as a dependency
in your project.
Example
When this.id changes, the task will automatically be re-invoked.
This is not a core part of ember-resources, but is an example utility to demonstrate a concept when authoring your own resources. However, this utility is still under the broader library's SemVer policy.
A consuming app will not pay for the bytes of this utility unless imported.
uses Resource to make ember-concurrency tasks reactive.
Note
ember-resources
does not provide or depend on ember-concurrency. If you want to use task, you'll need to add ember-concurrency as a dependency in your project.Example
When
this.id
changes, the task will automatically be re-invoked.(and all other properties on a TaskInstance)