Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

305
Views
How to run functions in parallel with timeout in Node.js

In my program there are list elements of which should be processed. So I pass them in function. I can do it consequently in for loop but it will take a long time, so I use Bluebird.map(). But I need to change how it runs functions so that it not run them at the same time but with timeout 1 second. Graphically: colored boxes - running functions, lines - 1 second intervals. enter image description here

One important thing is that at the same time maximum number of running functions should be limited. So what I want is Bluebird.map() but one which runs functions with 1 second interval

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!