Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by33.33%
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

FAQs

Package last updated on 08 Jul 2015

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc