Gathering detailed insights and metrics for ember-task-scheduler
Gathering detailed insights and metrics for ember-task-scheduler
Gathering detailed insights and metrics for ember-task-scheduler
Gathering detailed insights and metrics for ember-task-scheduler
Schedule tasks to try preserve 60 FPS rate on browsers.
npm install ember-task-scheduler
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (92.52%)
HTML (6.86%)
Shell (0.62%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
4 Stars
107 Commits
1 Forks
9 Watchers
137 Branches
9 Contributors
Updated on Dec 01, 2021
Latest Version
3.0.1
Package Id
ember-task-scheduler@3.0.1
Unpacked Size
252.65 kB
Size
42.41 kB
File Count
45
NPM Version
6.14.9
Node Version
12.18.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
51
An ember-cli addon to schedule tasks to try to preserve 60 FPS rate on browsers.
In your application's directory:
ember install ember-task-scheduler
1// Inject the service 2@service scheduler;
1// To schedule a callback you can use the same syntax as with Ember.run. 2this.scheduler.schedule(this, 'method', arg1, arg2); 3 4// To schedule a unique method. 5this.scheduler.scheduleOnce(this, 'method', arg1, arg2); 6 7// You can also run callbacks without context. 8this.scheduler.schedule(() => { 9 // Do job here. 10}); 11 12// All exceptions will be throw to Ember.onerror method.
To setup, you can set the following variables on config/environment
file:
1{ 2 "taskScheduler": { 3 "FPS": 60 4 } 5}
If variables are unset, the will default to above configuration.
When using requestAnimationFrame
method, there are some problems when developing big applications.
Some times, requestAnimationFrame
method will be executed several times on same browser frame. This will make the browser to execute all code on the next available frame. This can cause the browser to freeze due to the lack of frame scheduling.
This addon will handle this type of scheduling by running a FIFO queue with callbacks. On other words, when you run schedule
method twice on same frame. This addon will try to execute the first callback on the next available frame and, if the frame can fit the next callback (execution under 60 FPS rate), will try run it. Otherwise, it will be executed on the next available frame.
If you want to contribute to this addon, please read the CONTRIBUTING.md.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/18 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
100 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More