Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kellyselden/ember-defer
A deferred promise shim
https://github.com/kellyselden/ember-defer
Last synced: 16 days ago
JSON representation
A deferred promise shim
- Host: GitHub
- URL: https://github.com/kellyselden/ember-defer
- Owner: kellyselden
- License: mit
- Created: 2018-04-24T04:08:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T16:47:07.000Z (almost 7 years ago)
- Last Synced: 2024-12-21T09:25:41.617Z (about 1 month ago)
- Language: JavaScript
- Size: 270 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-defer
==============================================================================[![npm version](https://badge.fury.io/js/ember-defer.svg)](https://badge.fury.io/js/ember-defer)
[![Build Status](https://travis-ci.org/kellyselden/ember-defer.svg?branch=master)](https://travis-ci.org/kellyselden/ember-defer)A deferred promise shim
Installation
------------------------------------------------------------------------------```
ember install ember-defer
```Usage
------------------------------------------------------------------------------```js
import Deferred from 'ember-defer';let deferred = new Deferred();
deferred.resolve();
await deferred.promise;
```Contributing
------------------------------------------------------------------------------### Installation
* `git clone `
* `cd ember-defer`
* `npm install`### Linting
* `npm run lint:js`
* `npm run lint:js -- --fix`### Running tests
* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions### Running the dummy application
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).