JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5213665
  • Score
    100M100P100Q228477F
  • License MIT

Delay a promise a specified amount of time

Package Exports

  • delay

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (delay) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

delay Build Status

Delay a promise a specified amount of time

Install

$ npm install --save delay

Usage

const delay = require('delay');

somePromise()
    .then(delay(100))
    .then(() => {
        // executed after 100 milliseconds
    });
  • immediate-promise - Returns a promise resolved in the next event loop - think setImmediate()

License

MIT © Sindre Sorhus