2.0.2 • Published 4 years ago

set-immediate-interval v2.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Set Immediate Interval

Create an interval that executes callback function without delay at the first time. Typescript supported.

npm npm npm Build Status Coverage Status

API

setImmediateInterval(callback, ms)

  • callback: function - Required. The function that will be executed
  • ms: number - Required. The intervals (in milliseconds) on how often to execute the code

Example

import setImmediateInterval from 'set-immediate-interval';

const interval = setImmediateInterval(() => console.log('Hello, World!'), 1000);

setTimeout(() => clearInterval(interval), 5000);

License

MIT

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago