timeout-then
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    164
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    164
  • 1.1.0
    22
  • 1.0.0
    760

Package Sidebar

Install

npm i timeout-then

Weekly Downloads

946

Version

2.0.0

License

MIT

Unpacked Size

3.78 kB

Total Files

5

Last publish

Collaborators

  • coderhaoxin
  • jongleberry