Socket
Socket
Sign inDemoInstall

ember-delay

Package Overview
Dependencies
221
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-delay

Creates a promise which resolves after a specified delay


Version published
Weekly downloads
7
decreased by-58.82%
Maintainers
3
Install size
13.8 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 29 Jun 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc