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

/ember-delay/

    Package Sidebar

    Install

    npm i ember-delay

    Weekly Downloads

    7

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • gavinjoyce
    • patocallaghan
    • paddyobrien