ember-delay

0.1.0 • Public • Published

ember-delay

Build Status

Create promises which resolve after a specified delay

Questions? Ping me @gavinjoyce

Installation

This is an Ember CLI addon so all you need to do is

npm install ember-delay --save

Usage Instructions

delay(milliseconds) returns a promise which resolves after the specified milliseconds (the default is 2000).

import delay from 'ember-delay/delay';
 
var MyRoute = Ember.Route.extend({
  model: function() {
    return delay(1000).then(function() {
      return {
        name: 'Alex'
      };
    });
  }
})

Development Instructions

  • git clone this repository
  • npm install
  • bower install

TODOs:

  • provide a sample usage
  • some tests

Running

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    74
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    74
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i ember-delay

Weekly Downloads

7

Version

0.1.0

License

MIT

Last publish

Collaborators

  • gavinjoyce
  • patocallaghan
  • paddyobrien