{"id":15539045,"url":"https://github.com/buschtoens/ember-lifeline-decorators","last_synced_at":"2025-10-16T07:03:46.382Z","repository":{"id":38291775,"uuid":"154150285","full_name":"buschtoens/ember-lifeline-decorators","owner":"buschtoens","description":"Decorators for easily using ember-lifeline","archived":false,"fork":false,"pushed_at":"2023-12-15T11:43:33.000Z","size":2911,"stargazers_count":5,"open_issues_count":27,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-15T07:55:04.882Z","etag":null,"topics":["decorators","ember","ember-addon","ember-lifeline","emberjs"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buschtoens.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-22T13:36:40.000Z","updated_at":"2025-07-01T08:28:04.000Z","dependencies_parsed_at":"2024-10-02T12:09:05.729Z","dependency_job_id":"ef51e843-e9a0-491f-b88a-c77707cc06f8","html_url":"https://github.com/buschtoens/ember-lifeline-decorators","commit_stats":{"total_commits":141,"total_committers":7,"mean_commits":"20.142857142857142","dds":0.5815602836879432,"last_synced_commit":"750a4cd2adf9b37f6ed4cbfa26d8b5e15a52745c"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/buschtoens/ember-lifeline-decorators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buschtoens%2Fember-lifeline-decorators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buschtoens%2Fember-lifeline-decorators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buschtoens%2Fember-lifeline-decorators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buschtoens%2Fember-lifeline-decorators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buschtoens","download_url":"https://codeload.github.com/buschtoens/ember-lifeline-decorators/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buschtoens%2Fember-lifeline-decorators/sbom","scorecard":{"id":258902,"data":{"date":"2025-08-11","repo":{"name":"github.com/buschtoens/ember-lifeline-decorators","commit":"750a4cd2adf9b37f6ed4cbfa26d8b5e15a52745c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/buschtoens/ember-lifeline-decorators/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/buschtoens/ember-lifeline-decorators/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/buschtoens/ember-lifeline-decorators/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/buschtoens/ember-lifeline-decorators/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/buschtoens/ember-lifeline-decorators/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/buschtoens/ember-lifeline-decorators/ci.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"111 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-wxhq-pm8v-cw75","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-pc58-wgmc-hfjr","Warn: Project is vulnerable to: GHSA-vvv8-xw5f-3f88","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4","Warn: Project is vulnerable to: GHSA-4p35-cfcx-8653","Warn: Project is vulnerable to: GHSA-7f3x-x4pr-wqhj","Warn: Project is vulnerable to: GHSA-jpp7-7chh-cf67","Warn: Project is vulnerable to: GHSA-q6wq-5p59-983w","Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2","Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-xfhp-gmh8-r8v2","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T10:19:50.903Z","repository_id":38291775,"created_at":"2025-08-17T10:19:50.903Z","updated_at":"2025-08-17T10:19:50.903Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279164258,"owners_count":26117655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decorators","ember","ember-addon","ember-lifeline","emberjs"],"created_at":"2024-10-02T12:08:57.204Z","updated_at":"2025-10-16T07:03:46.343Z","avatar_url":"https://github.com/buschtoens.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-lifeline-decorators\n\n[![CI](https://github.com/buschtoens/ember-lifeline-decorators/workflows/CI/badge.svg)](https://github.com/buschtoens/ember-lifeline-decorators/actions)\n[![npm version](https://badge.fury.io/js/ember-lifeline-decorators.svg)](http://badge.fury.io/js/ember-lifeline-decorators)\n[![Download Total](https://img.shields.io/npm/dt/ember-lifeline-decorators.svg)](http://badge.fury.io/js/ember-lifeline-decorators)\n[![Ember Observer Score](https://emberobserver.com/badges/ember-lifeline-decorators.svg)](https://emberobserver.com/addons/ember-lifeline-decorators)\n[![Ember Versions](https://img.shields.io/badge/Ember.js%20Versions-%5E3.0-brightgreen.svg)](https://travis-ci.org/buschtoens/ember-lifeline-decorators)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)  \n[![Dependabot enabled](https://img.shields.io/badge/dependabot-enabled-blue.svg?logo=dependabot)](https://dependabot.com/)\n[![dependencies](https://img.shields.io/david/buschtoens/ember-lifeline-decorators.svg)](https://david-dm.org/buschtoens/ember-lifeline-decorators)\n[![devDependencies](https://img.shields.io/david/dev/buschtoens/ember-lifeline-decorators.svg)](https://david-dm.org/buschtoens/ember-lifeline-decorators)\n\nThis Ember addon gives you\n[decorators](https://github.com/tc39/proposal-decorators) for elegantly using\n[ember-lifeline][ember-lifeline] with ES6 classes.\n\n[ember-lifeline]: https://github.com/ember-lifeline/ember-lifeline\n\n## Installation\n\nInstall as any other addon. You will also need [ember-lifeline][ember-lifeline]\nitself:\n\n```\nember install ember-lifeline-decorators ember-lifeline\n```\n\n## Usage\n\n### Available decorators\n\n| Decorator                              | ember-lifeline                             | Description                                            |\n|----------------------------------------|--------------------------------------------|--------------------------------------------------------|\n| **[`@later`](#later)**                 | [`runTask`][runtask]                       | Delay the execution of this method                     |\n| **[`@schedule`](#schedule)**           | [`scheduleTask`][scheduletask]             | Schedule this method on a run loop queue               |\n| **[`@debounce`](#debounce)**           | [`debounceTask`][debouncetask]             | Debounce this method                                   |\n| **[`@throttle`](#throttle)**           | [`throttleTask`][throttletask]             | Throttle this method                                   |\n| **[`@destructor`](#destructor)**       | [`registerDisposable`][registerdisposable] | Automatically execute this method during `willDestroy` |\n| **[`@eventListener`](#eventListener)** | [`addEventListener`][addeventlistener]     | Execute this method when a DOM event is fired          |\n\n[runtask]: https://github.com/ember-lifeline/ember-lifeline#runtask\n[scheduletask]: https://github.com/ember-lifeline/ember-lifeline#scheduletask\n[debouncetask]: https://github.com/ember-lifeline/ember-lifeline#debouncetask\n[throttletask]: https://github.com/ember-lifeline/ember-lifeline#throttletask\n[registerdisposable]: https://github.com/ember-lifeline/ember-lifeline#registerdisposable\n[addeventlistener]: https://github.com/ember-lifeline/ember-lifeline#addeventlistener\n\n#### `@later`\n\n- **`timeout`**: _`number`_ — delay in milliseconds\n\n[`runTask`][runtask] / [`import { later } from '@ember/runloop';`](https://www.emberjs.com/api/ember/3.5/functions/@ember%2Frunloop/later)\n\nDelays the execution of the decorator by `timeout` milliseconds.\n\n```js\nimport Component from '@ember/component';\nimport { later } from 'ember-lifeline-decorators';\n\nexport default class ExampleComponent extends Component {\n  @later(500)\n  function callMeMaybe() {\n    // ...\n  }\n\n  // and then elsewhere\n  hereIsMyNumber() {\n    this.callMeMaybe();\n  }\n}\n```\n\n#### `@schedule`\n\n- **`queue`**: _`RunLoopQueue`_ — the queue to put the method in\n  - `sync`\n  - `actions`\n  - `routerTransitions`\n  - `render`\n  - `destroy`\n\n[`scheduleTask`][scheduletask] / [`import { schedule } from '@ember/runloop';`](https://www.emberjs.com/api/ember/3.5/functions/@ember%2Frunloop/schedule)\n\nWhen the method is called, it is scheduled to be run in the specified\n[run loop queue](https://guides.emberjs.com/release/applications/run-loop/).\n\n```js\nimport Component from '@ember/component';\nimport { later } from 'ember-lifeline-decorators';\n\nexport default class ExampleComponent extends Component {\n  @schedule('render')\n  function callMeMaybe() {\n    // ...\n  }\n\n  // and then elsewhere\n  hereIsMyNumber() {\n    this.callMeMaybe();\n  }\n}\n```\n\n#### `@debounce`\n\n- **`wait`**: _`number`_ — delay in milliseconds\n- **`immediate = false`**: _`boolean`_ — trigger the function on the leading instead of the trailing edge of the wait interval\n\n[`debounceTask`][debouncetask] / [`import { debounce } from '@ember/runloop';`](https://www.emberjs.com/api/ember/3.5/functions/@ember%2Frunloop/debounce)\n\nDelay calling the target method until the debounce period has elapsed with no\nadditional debounce calls. If the method is called again before the specified\ntime has elapsed, the timer is reset and the entire period must pass again\nbefore the target method is called.\n\n```js\nimport Component from '@ember/component';\nimport { debounce } from 'ember-lifeline-decorators';\n\nexport default class ExampleComponent extends Component {\n  @debounce(500)\n  function callMeMaybe() {\n    // ...\n  }\n\n  // and then elsewhere\n  hereIsMyNumber() {\n    this.callMeMaybe();\n  }\n}\n```\n\n#### `@throttle`\n\n- **`spacing`**: _`number`_ — Number of milliseconds to space out executions\n- **`immediate = true`**: _`boolean`_ — trigger the function on the leading instead of the trailing edge of the wait interval\n\n[`throttleTask`][throttletask] / [`import { throttle } from '@ember/runloop';`](https://www.emberjs.com/api/ember/3.5/functions/@ember%2Frunloop/throttle)\n\nEnsure that the target method is never called more frequently than the specified\nspacing period.\n\n```js\nimport Component from '@ember/component';\nimport { throttle } from 'ember-lifeline-decorators';\n\nexport default class ExampleComponent extends Component {\n  @throttle(500)\n  function callMeMaybe() {\n    // ...\n  }\n\n  // and then elsewhere\n  hereIsMyNumber() {\n    this.callMeMaybe();\n  }\n}\n```\n\n#### `@destructor`\n\n[`registerDisposable`][registerdisposable] / [`import { registerDestructor } from '@ember/destroyable';`](https://emberjs.github.io/rfcs/0580-destroyables.html#registerdestructor)\n\nCalls this method during destruction of the object.\n\n```js\nimport { action } from '@ember/object';\nimport Component from '@glimemr/component';\nimport { destructor } from 'ember-lifeline-decorators';\n\nexport default class ExampleComponent extends Component {\n  constructor(owner, args) {\n    super(owner, args);\n\n    window.addEventListener('resize', this.onResize);\n  }\n\n  @destructor\n  unregister() {\n    window.removeEventListener('resize', this.onResize);\n  }\n\n  @action\n  onResize(event) {\n    // ...\n  }\n}\n```\n\n#### `@eventListener`\n\n- **`target`**:\n  - _`EventTarget`_ — target, such as `window` or `HTMLElement`, to register the listener on\n  - _`(this: EmberObject, ctx: EmberObject) =\u003e EventTarget`_ — a callback that is called with the context bound to and the first parameter as the object the decorator is used on\n- **`eventName`**: _`string`_ — the event to listen for\n- **`options?`**: _`object`_ — optional options to pass to `addEventListener`\n\n[`addEventListener`][addeventlistener] / [`EventTarget.addEventListener`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)\n\n\u003e ⚠️👉 In almost all scenarios it is much more sensible to use\n\u003e [`ember-on-modifier`][ember-on-modifier] or\n\u003e [`ember-on-helper`][ember-on-helper].\n\n[ember-on-modifier]: https://github.com/ember-polyfills/ember-on-modifier#readme\n[ember-on-helper]: https://github.com/buschtoens/ember-on-helper#readme\n\nAutomatically calls this method whenever the given event is fired on `target`.\n\n```js\nimport Service from '@ember/service';\nimport { eventListener } from 'ember-lifeline-decorators';\n\nexport default class ScrollService extends Service {\n  @eventListener(window, 'scroll', { passive: true })\n  function onScroll(event) {\n    // ...\n  }\n}\n```\n\nBy passing a callback function as the first parameter, you can query the class\ninstance the decorator is used on for information. For instance, you can access\nthe `element` property of a `Component`:\n\n```js\nimport Component from '@ember/component';\nimport { eventListener } from 'ember-lifeline-decorators';\n\nexport default class ExampleComponent extends Component {\n  @eventListener(t =\u003e t.element, 'scroll', { passive: true })\n  function onScroll(event) {\n    // ...\n  }\n}\n```\n\nIf the `@eventListener` is used on a class that implements the\n`didInsertElement` hook, like the good ol' Ember `Component` or\n[`sparkles-component`](https://github.com/rwjblue/sparkles-component), the\ncallback will be executed during the `didInsertElement` hook. For all other\nsubclasses of `EmberObject` the callback will be executed during `init`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuschtoens%2Fember-lifeline-decorators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuschtoens%2Fember-lifeline-decorators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuschtoens%2Fember-lifeline-decorators/lists"}