node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

promise-temporal-delay

promise-temporal-delay

A promise based delay that does NOT use setTimeout or setInterval

Getting Started

Install in your project folder with:

npm install temporal --save

Example

var delay = require('promise-temporal-delay');
 
console.log('Do something now...')
 
delay(500).then(function() {
 
    console.log("500ms later...");
 
});

License

See LICENSE file.