use-interval-with-timeout

1.0.0 • Public • Published

use-interval-with-timeout

Custom setInterval with timeout.

Install

$ npm install use-interval-with-timeout

Usage

const useIntervalWithTimeout = require('use-interval-with-timeout');

const [currentIteration, cancelInterval] = useIntervalWithTimeout(
    countdown => console.log(`countdown ${countdown}`),
    () => console.log('done'),
    1000,
    30
);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    3

Package Sidebar

Install

npm i use-interval-with-timeout

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

2.96 kB

Total Files

5

Last publish

Collaborators

  • neogeek