more-timeout

0.0.2 • Public • Published

more-timeout

Simple function to run a timeout n times. :D

Usage

const setTimeoutFor = require('more-timeout');
const timeout = setTimeoutFor(callback, 1000, 5); // Call callback every second 5 times
// timeout.clear() // To clear a timer before if runs out
// timeout.getTimeout() // To get the active timer

Readme

Keywords

Package Sidebar

Install

npm i more-timeout

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

2.37 kB

Total Files

5

Last publish

Collaborators

  • mahdiponline