timeout-then
setTimeout as promised
Last updated 6 years ago by coderhaoxin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install timeout-then 
SYNC missed versions from official npm registry.

timeout-then

NPM version Build status Test coverage Dependency Status License Downloads

setTimeout as a promise.

const timeout = require('timeout-then');

timeout(100).then(function () {
  console.log('blah');
});

// clear timeout
let timer = timeout(100);
timer.then(function () {
  console.log('blah');
});
timer.clear();

Current Tags

  • 2.0.0                                ...           latest (6 years ago)

3 Versions

  • 2.0.0                                ...           6 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.0                                ...           12 years ago
Downloads
Total 17
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 1
Last Month 3
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE