Enable usage of `Ember.run.schedule`
See original GitHub issueThis could either be via options passed to runTask
, or another top level method specifically for this (i.e. scheduleTask
).
As of https://github.com/emberjs/ember.js/pull/14550 (will be included in 2.8.3, 2.9.1, 2.10.0-beta.3+), it is possible to cancel things scheduled into a specific queue via Ember.run.schedule
. In a sample application run.schedule
is one of the primary remaining use cases of Ember.run
that still requires manual this.isDestroying
checks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (9 by maintainers)
Top Results From Across the Web
The Run Loop - Application Concerns - Ember Guides
The run loop is used to batch, and order (or reorder) work in a way that is most effective and efficient. It does...
Read more >A Beginner's Guide to the Ember Run Loop - Launch Scout
This section is run once elements have been added to the DOM. They may not be on the screen at this time because...
Read more >The Ember Run Loop and Asynchronous Testing
The Ember Run Loop schedules these side effects and organizes any asynchronous work. Which sounds awesome, but needs some more context.
Read more >The Ember.js Run Loop – Simon's Scratch Book
A general work queue. Typically contains scheduled jobs. routerTransitions. Contains router transition jobs. render. Contains rendering jobs, ...
Read more >Why You Should Care About The Ember Run Loop
One good reason you should use Ember.run.schedule is when you're dealing with plugins that are manipulating the DOM. For example you might ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can’t recall, but possibly. I think we can mitigate though…
Actually, no, they have not. I added support for canceling in 2.8: https://github.com/emberjs/ember.js/pull/14550.