question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable usage of `Ember.run.schedule`

See original GitHub issue

This 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:closed
  • Created 7 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, Feb 13, 2017

Also, would this be the only part of the API that would be 2.8+?

I can’t recall, but possibly. I think we can mitigate though…

1reaction
rwjbluecommented, Feb 13, 2017

Haven’t run.schedule and run.scheduleOnce always returned a timer id to be able to cancel them?

Actually, no, they have not. I added support for canceling in 2.8: https://github.com/emberjs/ember.js/pull/14550.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found