
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
parallel-delay
Advanced tools
Run many function in sequential timeout
NPM
npm install parallel-delay --save
Bower
bower install parallel-delay --save
or download here
<script type="text/javascript" src="path/to/parallel-delay/delay.js"></script>
NodeJS
var delay = require('parallel-delay');
RequireJS
define([
'/bower_components/parallel-delay/delay'
], function(delay) {
// your code
});
or global variable name 'delay'
Default setting
var one = function(callback) {
callback(null, 'message one');
}
var two = function(callback) {
callback(null, 'message two');
}
var there = function(callback) {
callback(null, 'message there');
}
delay([ one, two, there ], function(err, message) {
console.log(message);
});
General timeout
var one = function(callback) {
callback(null, 'message one');
}
var two = function(callback) {
callback(null, 'message two');
}
var there = function(callback) {
callback(null, 'message there');
}
delay(2000, [ one, two, there ], function(err, message) {
console.log(message);
});
Individual timeout
var one = function(callback) {
callback(null, 'message one');
}
var two = function(callback) {
callback(null, 'message two');
}
var there = function(callback) {
callback(null, 'message there');
}
delay([
[one, 1500],
[two, 1000],
[there, 1500]
], function(err, message) {
console.log(message);
});
General and Individual timeout
var one = function(callback) {
callback(null, 'message one');
}
var two = function(callback) {
callback(null, 'message two');
}
var there = function(callback) {
callback(null, 'message there');
}
delay(1000, [
[one, 2000],
two,
there
], function(err, message) {
console.log(message);
});
FAQs
Run many function in sequential timeout
The npm package parallel-delay receives a total of 3 weekly downloads. As such, parallel-delay popularity was classified as not popular.
We found that parallel-delay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.