Comments (1)
Hi @iangregsondev ,
I'm not sure I understand your use case entirely but it appears like what you're describing is essentially the default behaviour of the library.
With the "fixed" strategy, the handler will be executed with a true interval of 15 seconds between runs, and it will never be executed twice at the same time, so you shouldn't have any race conditions between two iterations of the same handler.
from set-interval-async.
Related Issues (19)
- Enough stability for production use HOT 1
- Publish as scoped package HOT 1
- Add a way to change the interval HOT 1
- setIntervalAsync stop working after some hours HOT 3
- 404 error HOT 1
- [Feature Request] Run immediately HOT 9
- Importing dependencies like an example in the readme breaks clearIntervalAsync HOT 3
- clear interval from setIntervalAsync inside HOT 1
- first method for es6 import not work in nodejs HOT 1
- Question regarding clearIntervalAsync HOT 1
- clearIntervalAsync inside setIntervalAsync callback stops the execution HOT 1
- Error when running with Webpack 5 HOT 1
- Handling computer sleep HOT 1
- Cannot find module 'set-interval-async/dynamic' or its corresponding type declarations. HOT 1
- Cannot be imported to non-TypeScript project after 3.0.0-3.0.2 HOT 2
- /node_modules/set-interval-async/dist/set-interval-async-timer.cjs:25 HOT 4
- Can't import the named export 'clearIntervalAsync' (reexported as 'clearIntervalAsync') from default-exporting module (only default export is available) HOT 1
- Swallowing errors? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from set-interval-async.