timeout-then
setTimeout as promised
Last updated 6 years ago by coderhaoxin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |