We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Between two consecutive call, I would like to add delay, is it possible?
delay
The text was updated successfully, but these errors were encountered:
The mapper waits for a promise/async-function, so you can use https://github.com/sindresorhus/delay in there.
mapper
(async () => { const mapper = async element => { // something here await delay(1000); // something here }; const result = await pMap(array, mapper, {concurrency: 2}); })();
Sorry, something went wrong.
No branches or pull requests
Between two consecutive call, I would like to add
delay
, is it possible?The text was updated successfully, but these errors were encountered: