
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
sequential-chucks-caller
Advanced tools
Package for dividing multiple function calls into chunks and executing them sequentially.
executeChunks FunctionThe executeChunks function is designed to execute a specified function multiple times, sequentially in chunks, handling promises, and allowing for delays between each chunk. This can be particularly useful when dealing with large sets of data or when there's a need to manage execution over time.
You can import the executeChunks function in two ways, depending on your preference:
const { executeChunks } = require('sequential-chunks-caller');
import { executeChunks } from 'sequential-chunks-caller';
import { executeChunks } from 'sequential-chunks-caller';
const exampleFunction = (a, b) => { console.log(a + b); return a + b; };
const result = await executeChunks({
functionToExecute: exampleFunction,
totalCalls: 5,
chunkSize: 2,
payloadArray: [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]],
delaySeconds: 1
});
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
Package for dividing multiple function calls into chunks and executing them sequentially.
We found that sequential-chucks-caller 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.