🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ember-delay

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-delay

Creates a promise which resolves after a specified delay

0.1.0
latest
Source
npm
Version published
Weekly downloads
42
366.67%
Maintainers
3
Weekly downloads
 
Created
Source

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

Keywords

ember-addon

FAQs

Package last updated on 29 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts